Console.WriteLine(Day.Wednesday);
Console.WriteLine("The best day of the week is {0}.", Day.Friday);
int FirstWorkDay = (int)Day.Monday;
Console.WriteLine("Notice how this one prints a number for Monday: {0}", FirstWorkDay);
Console.WriteLine("{0} used to be the best day for tv.", Day.Thursday);
Day yesterday = Day.Tuesday;
Console.WriteLine("Yesterday was {0}", yesterday);
Day today = Day.Wednesday;
int dayNumber = (int)today;
Console.WriteLine("{0} is the {1}rd day of the work week.", today, dayNumber);
string dayName = ((Day) 1).ToString();
Console.WriteLine(dayName);
Cards hand = new Cards();
hand.GetCard(Cards.RankType.Ace, Cards.SuitType.Hearts);
public RankType rank {get ; set; }
public void GetCard(RankType rank, SuitType suit)
Console.WriteLine("I was dealt the {0} of {1}.", rank, suit);