Exemplo n.º 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));
 }
Exemplo n.º 2
0
 internal PropertyBuilder(TypeBuilder declaringType, string name, PropertyAttributes attributes, Type propertyType)
 {
     _base        = new MemberBuilderBase(declaringType, name);
     Attributes   = attributes;
     PropertyType = propertyType ?? throw new ArgumentNullException(nameof(propertyType));
 }
Exemplo n.º 3
0
 internal FieldBuilder(TypeBuilder declaringType, string name, FieldAttributes attributes, Type fieldType)
 {
     _base      = new MemberBuilderBase(declaringType, name);
     Attributes = attributes;
     FieldType  = fieldType;
 }