Skip to content

Instantly share code, notes, and snippets.

@EgorBo
Created November 13, 2016 10:46
Show Gist options
  • Save EgorBo/3b7f2e9a8dbce8082fb86bcb89759b5f to your computer and use it in GitHub Desktop.
Save EgorBo/3b7f2e9a8dbce8082fb86bcb89759b5f to your computer and use it in GitHub Desktop.
static int Case(bool b)
{
switch (b)
{
case true:
return 1;
case false:
return 2;
default:
return 3;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment