System.ComponentModel.TypeDescriptor.AttributeProvider.GetTypeDescriptor C# (CSharp) Method

GetTypeDescriptor() public method

Creates a custom type descriptor that replaces the attributes.
public GetTypeDescriptor ( Type objectType, object instance ) : ICustomTypeDescriptor
objectType System.Type
instance object
return ICustomTypeDescriptor
            public override ICustomTypeDescriptor GetTypeDescriptor(Type objectType, object instance)
            {
                return new AttributeTypeDescriptor(_attrs, base.GetTypeDescriptor(objectType, instance));
            }
TypeDescriptor.AttributeProvider