Exemplo n.º 1
0
        public PropertyDescriptorCollection GetProperties(Attribute[] attributes)
        {
            List <string> propNames = GetPropertyNames();

            PropertyDescriptor[] descriptors = new PropertyDescriptor[propNames.Count];
            int i = 0;

            foreach (string name in propNames)
            {
                descriptors[i] = new MapPropertyDescriptor(this, name);
                i++;
            }

            return(new PropertyDescriptorCollection(descriptors));
        }
        public PropertyDescriptorCollection GetProperties(Attribute[] attributes)
        {
            List<string> propNames = GetPropertyNames();

            PropertyDescriptor[] descriptors = new PropertyDescriptor[propNames.Count];
            int i = 0;
            foreach ( string name in propNames )
            {
                descriptors[i] = new MapPropertyDescriptor(this, name);
                i++;
            }

            return new PropertyDescriptorCollection(descriptors);
        }