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