Enumerations are types that give symbolic representation to a set of values of one of the primitive integral types. Enumerations are generally treated as distinct types. For an enumeration type E
, the default value is the value produced by the expression Convert(0, E)
.
The underlying type of an enumeration must be an integral type that can represent all the enumerator values defined in the enumeration. If an underlying type is specified, it must be Byte
, Short
, Integer
or Long
. If no underlying type is explicitly specified, the underlying type is Integer
.
Enum
[ Attributes ] Identifier [ As
IntegralTypeName ] LineTerminatorEnd
Enum
LineTerminator