Created
November 13, 2016 10:46
-
-
Save EgorBo/3b7f2e9a8dbce8082fb86bcb89759b5f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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