Created
March 7, 2018 07:49
-
-
Save wizardnet972/3df138959d7aa41f2f92a434abc04fc0 to your computer and use it in GitHub Desktop.
c#
This file contains hidden or 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
| class Program | |
| { | |
| public const int codeAccess_admin = 1; | |
| public const int codeAccess_user = 2; | |
| public const int codeAccess_author = 3; | |
| public const string codeAccess_special = "100"; | |
| static void Main(string[] args) | |
| { | |
| var accessCodeFromRequest = "100"; | |
| switch (accessCodeFromRequest) | |
| { | |
| case codeAccess_admin: | |
| break; | |
| case codeAccess_user: | |
| break; | |
| case codeAccess_author: | |
| break; | |
| case codeAccess_special: | |
| break; | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment