PropertyDescriptorCollection GetPropertyDescriptors() { PropertyDescriptor[] propertyDescriptors = new PropertyDescriptor[_attributes.Count]; int i = 0; foreach (KeyValuePair <string, string> a in _attributes) { propertyDescriptors[i++] = new RssElementCustomPropertyDescriptor(a.Key); } return(new PropertyDescriptorCollection(propertyDescriptors)); }
private PropertyDescriptorCollection GetPropertyDescriptors() { var propertyDescriptors = new PropertyDescriptor[_attributes.Count]; int i = 0; foreach (KeyValuePair<string, string> a in _attributes) { propertyDescriptors[i++] = new RssElementCustomPropertyDescriptor(a.Key); } return new PropertyDescriptorCollection(propertyDescriptors); }