Exemple #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));
        }
Exemple #2
0
 public PropertyOptionDescriptor(PropertyOption propertyValue, Attribute[] attributes)
     : base(propertyValue.Name, attributes)
 {
     PropertyOption = propertyValue;
 }
Exemple #3
0
 public void Remove(PropertyOption value)
 {
     List.Remove(value);
 }
Exemple #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);