public PropertyDescriptorCollection GetProperties(Attribute[] attributes)
        {
            PropertyDescriptor[] newProps = new PropertyDescriptor[this.Count];
            for (int i = 0; i < this.Count; i++)
            {
                CAttribute prop = (CAttribute)this[i];
                newProps[i] = new CustomPropertyDescriptor(ref prop, attributes);
            }

            return(new PropertyDescriptorCollection(newProps));
        }
 public CustomPropertyDescriptor(ref CAttribute myProperty, Attribute[] attrs)
     : base(myProperty.StrName, attrs)
 {
     m_Property = myProperty;
 }
 /// <summary>
 /// Add 1 CAttribute vào list
 /// </summary>
 /// <param name="Value"></param>
 public void Add(CAttribute Value)
 {
     base.List.Add(Value);
 }