SHARE
TWEET

Untitled

a guest Jun 19th, 2017 45 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. namespace EnumApplication
  3. {
  4.    class EnumProgram
  5.    {
  6.       enum Days { Sun, Mon, tue, Wed, thu, Fri, Sat };
  7.  
  8.       static void Main(string[] args)
  9.       {
  10.          int WeekdayStart = (int)Days.Mon;
  11.          int WeekdayEnd = (int)Days.Fri;
  12.          Console.WriteLine("Monday: {0}", WeekdayStart);
  13.          Console.WriteLine("Friday: {0}", WeekdayEnd);
  14.          Console.ReadKey();
  15.       }
  16.    }
  17. }
RAW Paste Data
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top