Skip to content

Instantly share code, notes, and snippets.

@Eugeny
Created December 9, 2010 17:17
Show Gist options
  • Select an option

  • Save Eugeny/735003 to your computer and use it in GitHub Desktop.

Select an option

Save Eugeny/735003 to your computer and use it in GitHub Desktop.
using System;
namespace test
{
class MainClass
{
public enum Stuff
{
A = 1,
B = 2,
C = 3
}
public static void Main (string[] args)
{
Stuff x = Stuff.C;
switch (x) {
case Stuff.A:
Console.WriteLine ("A!");
break;
case Stuff.B:
Console.WriteLine ("B!");
break;
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment