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


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

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
© 2016 Microsoft