System.ComponentModel.DebugTypeDescriptor.GetProperties C# (CSharp) Method

GetProperties() public static method

public static GetProperties ( object component, bool noCustomTypeDesc ) : PropertyDescriptorCollection
component object
noCustomTypeDesc bool
return PropertyDescriptorCollection
        public static PropertyDescriptorCollection GetProperties(object component, bool noCustomTypeDesc) {
            if (component == null) {
                throw new ArgumentNullException("component");
            }

            if (!noCustomTypeDesc && component is ICustomTypeDescriptor) {
                PropertyDescriptorCollection properties = ((ICustomTypeDescriptor)component).GetProperties();
                return GetEntry(component, component.GetType()).FilterProperties(component, null, properties);
            }

            return GetProperties(component, null, (component is ICustomTypeDescriptor));
        }

Same methods

DebugTypeDescriptor::GetProperties ( Type componentType ) : PropertyDescriptorCollection
DebugTypeDescriptor::GetProperties ( Type componentType, Attribute attributes ) : PropertyDescriptorCollection
DebugTypeDescriptor::GetProperties ( object component ) : PropertyDescriptorCollection
DebugTypeDescriptor::GetProperties ( object component, Attribute attributes ) : PropertyDescriptorCollection
DebugTypeDescriptor::GetProperties ( object component, Attribute attributes, bool noCustomTypeDesc ) : PropertyDescriptorCollection