Type.GetTypeCode Method (Type)
Gets the underlying type code of the specified Type.
Assembly: mscorlib (in mscorlib.dll)
The following code example demonstrates how the TypeCode enumeration can be used. In a decision block inside the WriteObjectInfo method, the TypeCode of an Object parameter is examined, and an appropriate message is written to the console.
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0