Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace EnumApplication
- {
- class EnumProgram
- {
- enum Days { Sun, Mon, tue, Wed, thu, Fri, Sat };
- static void Main(string[] args)
- {
- int WeekdayStart = (int)Days.Mon;
- int WeekdayEnd = (int)Days.Fri;
- Console.WriteLine("Monday: {0}", WeekdayStart);
- Console.WriteLine("Friday: {0}", WeekdayEnd);
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement