System.ComponentModel.TypeDescriptor.GetProvider C# (CSharp) Method

GetProvider() private method

private GetProvider ( object instance ) : TypeDescriptionProvider
instance object
return TypeDescriptionProvider
        public static TypeDescriptionProvider GetProvider(object instance)
        {
            if (instance == null)
            {
                throw new ArgumentNullException(nameof(instance));
            }

            return NodeFor(instance, true);
        }

Same methods

TypeDescriptor::GetProvider ( Type type ) : TypeDescriptionProvider

Usage Example

Example #1
0
        public static void Add(Type type)
        {
            TypeDescriptionProvider parent = TypeDescriptor.GetProvider(type);

            TypeDescriptor.AddProvider(new HyperTypeDescriptionProvider(parent), type);
        }
All Usage Examples Of System.ComponentModel.TypeDescriptor::GetProvider