public PropertyDescriptorCollection GetProperties(Attribute[] attributes) { PropertyDescriptor[] newProps = new PropertyDescriptor[properties.Length]; for (int i = 0; i < properties.Length; i++) { BranchAccessItemProperty prop = new BranchAccessItemProperty(properties[i].Name, properties[i], false, true); newProps[i] = new BranchAccessItemPropertyDescriptor(ref prop, attributes); } return(new PropertyDescriptorCollection(newProps)); }
public PropertyDescriptorCollection GetProperties(Attribute[] attributes) { PropertyDescriptor[] newProps = new PropertyDescriptor[properties.Length]; for (int i = 0; i < properties.Length; i++) { BranchAccessItemProperty prop = new BranchAccessItemProperty(properties[i].Name, properties[i], false, true); newProps[i] = new BranchAccessItemPropertyDescriptor(ref prop, attributes); } return new PropertyDescriptorCollection(newProps); }