public PropertyDescriptorCollection GetProperties(Attribute[] attributes) { PropertyDescriptor[] newProps = new PropertyDescriptor[Count]; for (int i = 0; i < Count; i++) { PGProperty prop = (PGProperty)List[i]; newProps[i] = new PGPropertyDescriptor(ref prop, attributes); } return(new PropertyDescriptorCollection(newProps)); }
public void Add(PGProperty value) { List.Add(value); }
public PGPropertyDescriptor(ref PGProperty prop, Attribute[] attrs) : base(prop.key, attrs) { this.prop = prop; }