public override PropertyDescriptorCollection GetProperties() { PropertyDescriptor[] propertyDescriptors = new PropertyDescriptor[cache.Count]; var keys = cache.Keys.ToArray(); for (int i = 0; i < keys.Length; i++) { propertyDescriptors[i] = new ValueStorePropertyDescriptor(keys[i]); } collection = new PropertyDescriptorCollection(propertyDescriptors); return collection; }
public override PropertyDescriptorCollection GetProperties() { PropertyDescriptor[] propertyDescriptors = new PropertyDescriptor[cache.Count]; var keys = cache.Keys.ToArray(); for (int i = 0; i < keys.Length; i++) { propertyDescriptors[i] = new ValueStorePropertyDescriptor(keys[i]); } collection = new PropertyDescriptorCollection(propertyDescriptors); return(collection); }