Beispiel #1
0
 public EventBuilder(TypeBuilder declaringType, string name, EventAttributes attributes, Type handlerType)
 {
     _base            = new MemberBuilderBase(declaringType, name);
     Attributes       = attributes;
     EventHandlerType = handlerType ?? throw new ArgumentNullException(nameof(handlerType));
 }
 internal PropertyBuilder(TypeBuilder declaringType, string name, PropertyAttributes attributes, Type propertyType)
 {
     _base        = new MemberBuilderBase(declaringType, name);
     Attributes   = attributes;
     PropertyType = propertyType ?? throw new ArgumentNullException(nameof(propertyType));
 }
Beispiel #3
0
 internal FieldBuilder(TypeBuilder declaringType, string name, FieldAttributes attributes, Type fieldType)
 {
     _base      = new MemberBuilderBase(declaringType, name);
     Attributes = attributes;
     FieldType  = fieldType;
 }