System.ComponentModel.Design.DesignerOptionService.DesignerOptionConverter.GetProperties C# (CSharp) Method

GetProperties() public method

public GetProperties ( ITypeDescriptorContext cxt, object value, Attribute attributes ) : PropertyDescriptorCollection
cxt ITypeDescriptorContext
value object
attributes System.Attribute
return System.ComponentModel.PropertyDescriptorCollection
            public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext cxt, object value, Attribute[] attributes)
            {
                PropertyDescriptorCollection props = new PropertyDescriptorCollection(null);
                DesignerOptionCollection options = value as DesignerOptionCollection;
                if (options == null)
                {
                    return props;
                }

                foreach (DesignerOptionCollection option in options)
                {
                    props.Add(new OptionPropertyDescriptor(option));
                }

                foreach (PropertyDescriptor p in options.Properties)
                {
                    props.Add(p);
                }
                return props;
            }
DesignerOptionService.DesignerOptionConverter