ECMA-334: 11.1.9 Enumeration types
Microsoft .NET Framework, ASP.NET, Visual C# (CSharp, C Sharp, C-Sharp) Developer Training, Visual Studio
| C# Language Specification |
| © 2006 ECMA International |
11.1.9 Enumeration types
An enumeration type is a distinct type with named constants. Every enumeration type has an underlying
type, which shall be byte, sbyte, short, ushort, int, uint, long or ulong. Enumeration types are
defined through enumeration declarations (§21.1). The direct base type of every enumeration type is the
class System.Enum. The direct base class of System.Enum is System.ValueType.