Export (0) Print
Expand All
2 out of 11 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)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.