Exemplo n.º 1
0
        public PropertyDescriptorCollection GetProperties(Attribute[] attributes)
        {
            PropertyDescriptor[] properties = new PropertyDescriptor[List.Count];

            for (int i = 0; i < List.Count; ++i)
            {
                PropertyOption propertyValue = this[i];
                properties[i] = new PropertyOptionDescriptor(propertyValue, propertyValue.Attributes);
            }

            return(new PropertyDescriptorCollection(properties));
        }
Exemplo n.º 2
0
 public PropertyOptionDescriptor(PropertyOption propertyValue, Attribute[] attributes)
     : base(propertyValue.Name, attributes)
 {
     PropertyOption = propertyValue;
 }
Exemplo n.º 3
0
 public void Remove(PropertyOption value)
 {
     List.Remove(value);
 }
Exemplo n.º 4
0
 public void Add(PropertyOption value)
 {
     List.Add(value);
 }
 public void Remove(PropertyOption value) => this.List.Remove(value);
 public void Add(PropertyOption value) => this.List.Add(value);