System.Type.GetTypeCode Method

Gets the underlying type code of the specified Type.

Syntax

public static TypeCode GetTypeCode (Type type)

Parameters

type
The type whose underlying type code to get.

Returns

The code of the underlying type, or TypeCode.Empty if type is null.

Remarks

When you inherit from Type, you can change the behavior of this method by overriding the Type.GetTypeCodeImpl method.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0