All pastes #904410 Raw Edit

RickyWh

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

namespace RickyTest
{
	public class EnumTest 
	{
		
		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);
			
			Month testEnum = new Month();
			GetMonth(testEnum);
		}
	}
}