Enumerations provide a convenient way to work with sets of related constants and to associate constant values with names. For example, you can declare an enumeration for a set of integer constants associated with the days of the week, and then use the names of the days rather than their integer values in your code.
The following table lists common tasks involving enumerations.
To do this
Find a pre-defined enumeration
Declare an enumeration
Fully qualify an enumeration's name
Refer to an enumeration member
Iterate through an enumeration
Determine the string associated with an enumeration
Decide when to use an enumeration