Редагувати

Поділитися через


TypeDescriptionProvider.GetRuntimeType(Type) Method

Definition

Converts a reflection type into a runtime type.

public:
 virtual Type ^ GetRuntimeType(Type ^ reflectionType);
public virtual Type GetRuntimeType (Type reflectionType);
abstract member GetRuntimeType : Type -> Type
override this.GetRuntimeType : Type -> Type
Public Overridable Function GetRuntimeType (reflectionType As Type) As Type

Parameters

reflectionType
Type

The type to convert to its runtime equivalent.

Returns

A Type that represents the runtime equivalent of reflectionType.

Exceptions

reflectionType is null.

Remarks

The GetRuntimeType method reverses the GetReflectionType 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.

Applies to