/// <summary>For an OSpace ComplexType returns the delegate to construct the clr instance.</summary>
 internal static Delegate GetConstructorDelegateForType(ClrComplexType clrType)
 {
     return(clrType.Constructor ?? (clrType.Constructor = CreateConstructor(clrType.ClrType)));
 }
Пример #2
0
 internal static Func <object> GetConstructorDelegateForType(ClrComplexType clrType)
 {
     return(clrType.Constructor ?? (clrType.Constructor = DelegateFactory.CreateConstructor(clrType.ClrType)));
 }