The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
Type::GetEnumUnderlyingType Method ()
.NET Framework (current version)
Returns the underlying type of the current enumeration type.
Assembly: mscorlib (in mscorlib.dll)
| Exception | Condition |
|---|---|
| ArgumentException | The current type is not an enumeration. -or- The enumeration type is not valid, because it contains more than one instance field. |
By default, the underlying type of an enumeration in C# and Visual Basic is Int32. Other integer types can be specified.
.NET Framework
Available since 4.0
Available since 4.0
Show: