Edit

Share via


TypeDescriptionProvider Constructors

Definition

Initializes a new instance of the TypeDescriptionProvider class.

Overloads

TypeDescriptionProvider()

Initializes a new instance of the TypeDescriptionProvider class.

TypeDescriptionProvider(TypeDescriptionProvider)

Initializes a new instance of the TypeDescriptionProvider class using a parent type description provider.

TypeDescriptionProvider()

Source:
TypeDescriptionProvider.cs
Source:
TypeDescriptionProvider.cs
Source:
TypeDescriptionProvider.cs

Initializes a new instance of the TypeDescriptionProvider class.

protected:
 TypeDescriptionProvider();
protected TypeDescriptionProvider ();
Protected Sub New ()

Remarks

This constructor is equivalent to calling the other TypeDescriptionProvider(TypeDescriptionProvider) constructor with a parameter value that is null.

See also

Applies to

TypeDescriptionProvider(TypeDescriptionProvider)

Source:
TypeDescriptionProvider.cs
Source:
TypeDescriptionProvider.cs
Source:
TypeDescriptionProvider.cs

Initializes a new instance of the TypeDescriptionProvider class using a parent type description provider.

protected:
 TypeDescriptionProvider(System::ComponentModel::TypeDescriptionProvider ^ parent);
protected TypeDescriptionProvider (System.ComponentModel.TypeDescriptionProvider parent);
new System.ComponentModel.TypeDescriptionProvider : System.ComponentModel.TypeDescriptionProvider -> System.ComponentModel.TypeDescriptionProvider
Protected Sub New (parent As TypeDescriptionProvider)

Parameters

parent
TypeDescriptionProvider

The parent type description provider.

Remarks

If the parent parameter is null, all TypeDescriptionProvider methods will return default values. Otherwise, all TypeDescriptionProvider methods will delegate to the methods of parent.

The following table shows the default return values for TypeDescriptionProvider methods.

Method Default return value
GetCache null
CreateInstance A newly created object through a call to the CreateInstance method.
GetExtendedTypeDescriptor A default instance of a CustomTypeDescriptor class.
GetTypeDescriptor A default instance of a CustomTypeDescriptor class.
GetReflectionType The objectType first parameter.

See also

Applies to