NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

7.3 Enumerations

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.

EnumTypeName ::= QualifiedIdentifier
EnumDeclaration ::=
 [ EnumModifier+ ] Enum [ Attributes ] Identifier [ As IntegralTypeName ] LineTerminator
 EnumMemberDeclaration+
 End Enum LineTerminator
EnumModifier ::= AccessModifier | ShadowsModifier