Esempio n. 1
0
 public static PropertyBuilder DefineProperty(this TypeBuilder tb, string name, PropertyAttributes attributes, CallingConventions callingConvention, GenericTypeParameterBuilder returnType, Type[] parameterTypes)
 {
     return(tb.DefineProperty(name, attributes, callingConvention, returnType.AsType(), parameterTypes));
 }
Esempio n. 2
0
 public static FieldBuilder DefineField(this TypeBuilder tb, string fieldName, GenericTypeParameterBuilder genericTypeParameterBuilder, FieldAttributes attributes)
 {
     return(tb.DefineField(fieldName, genericTypeParameterBuilder.AsType(), attributes));
 }