2 out of 9 rated this helpful - Rate this topic

14. Enums

Visual Studio .NET 2003

An enum type is a distinct value type (Section 4.1) that declares a set of named constants.

The example

enum Color
{
   Red,
   Green,
   Blue
}

declares an enum type named Color with members Red, Green, and Blue.

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.