コード例 #1
0
		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;
		}
コード例 #2
0
        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);
        }