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

GetProperties() public static method

public static GetProperties ( object component, Attribute attributes, bool noCustomTypeDesc ) : PropertyDescriptorCollection
component object
attributes System.Attribute
noCustomTypeDesc bool
return PropertyDescriptorCollection
        public static PropertyDescriptorCollection GetProperties(object component, Attribute[] attributes, bool noCustomTypeDesc) {
            if (component == null) {
                return new PropertyDescriptorCollection(null, true);
            }

            if (System.Runtime.InteropServices.Marshal.IsComObject(component)) {
                // Do not rip this varible -- it is here to make the get to 
                // this static variable thread-safe.
                //
#pragma warning disable 618
                IComNativeDescriptorHandler handler = comNativeDescriptorHandler;
#pragma warning restore 618
                
                if (handler != null) {
                    return handler.GetProperties(component, attributes);
                }
                return new PropertyDescriptorCollection(null, true);
            }

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

            return GetEntry(component, component.GetType()).GetProperties(component, attributes,(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, bool noCustomTypeDesc ) : PropertyDescriptorCollection