Convert.GetTypeCode Method (Object)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Returns the TypeCode for the specified object.

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

public static TypeCode GetTypeCode(
	object value
)

Parameters

value
Type: System.Object

An object that implements the IConvertible interface.

Return Value

Type: System.TypeCode

The System.TypeCode for value, or TypeCode.Empty if value is null.

Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: