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)); }
public static FieldBuilder DefineField(this TypeBuilder tb, string fieldName, GenericTypeParameterBuilder genericTypeParameterBuilder, FieldAttributes attributes) { return(tb.DefineField(fieldName, genericTypeParameterBuilder.AsType(), attributes)); }