CustomTypeDescriptor Constructor (ICustomTypeDescriptor)

 

Initializes a new instance of the CustomTypeDescriptor class using a parent custom type descriptor.

Namespace:   System.ComponentModel
Assembly:  System (in System.dll)

protected CustomTypeDescriptor(
	ICustomTypeDescriptor parent
)

Parameters

parent
Type: System.ComponentModel.ICustomTypeDescriptor

The parent custom type descriptor.

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

Most CustomTypeDescriptor methods return null by default. The following table shows the return values for the methods that do not return null by default.

Method

Default return value

GetAttributes

An empty attribute collection (AttributeCollection.Empty).

GetConverter

The default TypeConverter instance.

GetEvents

An empty events collection (EventDescriptorCollection.Empty).

GetProperties

An empty property collection (PropertyDescriptorCollection.Empty).

.NET Framework
Available since 2.0
Return to top
Show: