System.Type.GetEnumUnderlyingType Method

Returns the underlying type of the current enumeration type.

Syntax

public virtual Type GetEnumUnderlyingType ()

Returns

The underlying type of the current enumeration.

Remarks

By default, the underlying type of an enumeration in C# and Visual Basic is int. Other integer types can be specified.

Requirements

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