public virtual PropertyDescriptorCollection GetProperties(Attribute[] attributes) { PropertyDescriptorCollection newProps = new PropertyDescriptorCollection(null); foreach (KeyValuePair <string, TValue> key in this) { DictionPropertyDescriptor p = new DictionPropertyDescriptor(this, key.Key, default(TValue), attributes); newProps.Add(p); } return(newProps); }
public virtual PropertyDescriptorCollection GetProperties(Attribute[] attributes) { PropertyDescriptorCollection newProps = new PropertyDescriptorCollection(null); for (int i = 0; i < this.Count; i++) { KeyValuePair <string, TValue> key = this[i]; DictionPropertyDescriptor p = new DictionPropertyDescriptor(this, key.Key, default(TValue), attributes); newProps.Add(p); } return(newProps); }