GetRuntimeType Method

TypeDescriptionProvider.GetRuntimeType Method (Type)

.NET Framework (current version)
 

Converts a reflection type into a runtime type.

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

public virtual Type GetRuntimeType(
	Type reflectionType
)

Parameters

reflectionType
Type: System.Type

The type to convert to its runtime equivalent.

Return Value

Type: System.Type

A Type that represents the runtime equivalent of reflectionType.

Exception Condition
ArgumentNullException

reflectionType is null.

The GetRuntimeType method reverses theGetReflectionType method to convert a reflection type back into a runtime type. Using the GetRuntimeType method is preferred over using the UnderlyingSystemType property, which was used in earlier versions to return the runtime type.

.NET Framework
Available since 4.0
Return to top
Show:
© 2016 Microsoft