protected Type GetConstructorTypeIntern(Type delegateType, Type targetType) { String constructorClassName = targetType.FullName + "$FastConstructor$" + delegateType.FullName; lock (writeLock) { AccessorClassLoader loader = AccessorClassLoader.Get(targetType); Type type = loader.LoadClass(constructorClassName); if (type != null) { return(type); } return(CreateConstructorType(loader, constructorClassName, delegateType, targetType)); } }
protected Type GetAccessorTypeIntern(Type targetType, IPropertyInfo property) { String accessClassName = targetType.FullName + "$" + typeof(AbstractAccessor).Name + "$" + property.Name; lock (writeLock) { AccessorClassLoader loader = AccessorClassLoader.Get(targetType); Type type = loader.LoadClass(accessClassName); if (type != null) { return(type); } return(CreateType(loader, accessClassName, targetType, property)); } }