Define Enums : enums Definition « Data Type « C# / CSharp Tutorial






enum Colors
{
    red,
    green,
    blue
}








2.40.enums Definition
2.40.1.Define Enums
2.40.2.Using the LegalDoorStates Enumeration
2.40.3.Comparing Enumeration Values with CompareTo()
2.40.4.Retrieving an Enumeration Name with GetName()