Skip to content

Instantly share code, notes, and snippets.

@NameOfTheDragon
Created May 11, 2015 23:32
Show Gist options
  • Save NameOfTheDragon/5deef0d985bad71ac468 to your computer and use it in GitHub Desktop.
Save NameOfTheDragon/5deef0d985bad71ac468 to your computer and use it in GitHub Desktop.
Example of C# switch statement
switch (variable)
{
case value-1:
// Do something
break;
case value-2:
// Do something
break;
default:
// Do something
break;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment