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.2 Enumeration values

The identifiers in an enumeration member list are declared as constants, and can appear wherever constants are required. An enumeration member definition with "=" gives the associated enumeration member the value indicated by the constant expression. The constant expression must evaluate to an integral type and must be within the range of values that can be represented by the underlying type. The constant expression may not directly or indirectly use the value of its own associated enumeration member (that is, circularity in the constant expression is not allowed). Because the scope of a member only begins at the point of declaration, a constant expression may not reference members that occur textually later in the declaration.

If the first enumerator has no initializer, the value of the corresponding constant is zero. An enumeration member definition without an initializer gives the enumerator the value obtained by increasing the value of the previous enumeration member by one. This increased value must be within the range of values that can be represented by the underlying type.