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)); }
internal FieldBuilder(TypeBuilder declaringType, string name, FieldAttributes attributes, Type fieldType) { _base = new MemberBuilderBase(declaringType, name); Attributes = attributes; FieldType = fieldType; }