All pastes #904401 Raw Edit

RickyWh

public text v1 · immutable
·published 2008-02-14 22:26 UTC
rendered paste body
using System;

namespace RickyTest
{
	public class EnumTest 
	{
		enum Days {Sat=1, Sun, Mon, Tue, Wed, Thu, Fri};
		
		public enum Month
		{
			January=1,
			February,
			March,
			April,
			May,
			June,
			July,
			August,
			September,
			October,
			November,
			December
		}
		
		public static void GetMonth(Month m)
		{
			Console.WriteLine(m.ToString());
		}
		
		static void Main()
		{
	        	int x = (int)Month.August;
		        Console.WriteLine("blha blah {0}", x);
			GetMonth(Month);
		}
	}
}