コード例 #1
0
 /// <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)));
 }