using System;
enum Color
{
red,
green,
yellow
}
public class TheSystemEnumType1
{
public static void Main()
{
Color c = Color.red;
Console.WriteLine("c is {0}", c);
}
}
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok