public BuiltinPropertyDescriptor (PropertyInfo property, Attribute[] attributes) : base(property.Name, MemberDescriptor.MergeAttributes (attributes, ReadAttributes(property))) { this.property = property; this.type = property.PropertyType; }
public BuiltinEventDescriptor (EventInfo eventInfo, Attribute[] attributes) : base(eventInfo.Name, MemberDescriptor.MergeAttributes (attributes, ReadAttributes(eventInfo))) { this.eventInfo = eventInfo; this.type = eventInfo.EventHandlerType; }