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);
        }
Beispiel #2
0
        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);
        }