Enum.GetTypeCode Method ()

 
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 type code of the underlying type of this enumeration member.

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

public TypeCode GetTypeCode()

Return Value

Type: System.TypeCode

The type code of the underlying type of this instance.

Exception Condition
InvalidOperationException

The enumeration type is unknown.

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