class Program { public enum TimeOfDay { Morining, Afternoon, Evening } static void Main(string[] args) { Console.WriteLine(TimeOfDay.Afternoon); } }
Console.WriteLine(TimeOfDay.Afternoon);//Afternoon
TimeOfDay TIME = TimeOfDay.Afternoon;
Console.WriteLine(TIME.ToString()); //Afternoon
Console.WriteLine(TIME); //Afternoon