PropertyDescriptor.CreateInstance Method (Type)


Creates an instance of the specified type.

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

protected object CreateInstance(
	Type type


Type: System.Type

A Type that represents the type to create.

Return Value

Type: System.Object

A new instance of the type.

CreateInstance looks for a constructor that takes the specified type. If it finds a constructor, the type of the property is passed in.

Converters and editors use this method to create versions of a component. This method enables a single component to be reused for more than one type.


for access to private class members and metadata. Associated enumeration: Unrestricted

.NET Framework
Available since 1.1
Return to top