示例#1
0
            public PropertyDescriptorCollection GetProperties(Attribute[] attributes)
            {
                ArrayList properties = new ArrayList();

                foreach (KeyValuePair <TKey, TValue> e in _dictionary)
                {
                    if (!_show0 && EquipMe.ToFloat(_dictionary[e.Key].ToString()) == 0)
                    {
                        continue;
                    }
                    properties.Add(new DictionaryPropertyDescriptor <TKey, TValue>(_dictionary, e.Key));
                }

                PropertyDescriptor[] props =
                    (PropertyDescriptor[])properties.ToArray(typeof(PropertyDescriptor));

                return(new PropertyDescriptorCollection(props));
            }