public override PropertyDescriptorCollection GetProperties(Attribute[] attributes)
        {
            PropertyDescriptorCollection ps  = TypeDescriptor.GetProperties(this, attributes, true);
            List <PropertyDescriptor>    lst = new List <PropertyDescriptor>();

            foreach (PropertyDescriptor p in ps)
            {
                lst.Add(_links.GetPropertyDescriptor(p));
            }
            return(new PropertyDescriptorCollection(lst.ToArray()));
        }
Ejemplo n.º 2
0
        public PropertyDescriptorCollection GetProperties(Attribute[] attributes)
        {
            List <PropertyDescriptor> lst = new List <PropertyDescriptor>();

            if (_ps != null)
            {
                for (int i = 0; i < _ps.Count; i++)
                {
                    lst.Add(_links.GetPropertyDescriptor(new PropertyDescriptorField(_ps[i])));
                }
            }
            return(new PropertyDescriptorCollection(lst.ToArray()));
        }