using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace examleEnum
{
class Program
{
static void Main(string[] args)
{
// create and initialize enum type
Holiday MyHoliday = Holiday.Friday;
//make decision
switch (MyHoliday)
{
case Holiday.Friday:
Console.WriteLine("Yes today is Holiday take rest");
break;
case Holiday.Monday:
Console.WriteLine("Today is working day");
break;
case Holiday.Tuesday:
Console.WriteLine("Today is working day");
break;
case Holiday.Wednesday:
Console.WriteLine("Today is working day");
break;
}
Console.ReadLine();
}
}
// declares the enum
public enum Holiday
{
Monday,
Tuesday,
Wednesday,
Thursday,
Friday
}
}