Last active
January 4, 2020 15:49
-
-
Save amigojapan/acf95db85f8b55b5ed439bb4cfa345e9 to your computer and use it in GitHub Desktop.
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
| using System; | |
| class Program{ | |
| static void Main(string[] args){ | |
| if (!args.Any()){ | |
| Console.WriteLine("args is null"); | |
| Environment.Exit(1); | |
| }else{ | |
| switch(args[0]) { | |
| case "1": | |
| Console.WriteLine("hello world!"); | |
| break; | |
| case "2": | |
| //some forloop or something | |
| break; | |
| case "3": | |
| //some otehr code bit | |
| break; | |
| default: | |
| Console.WriteLine("that is not a valid code bit number"); | |
| break; | |
| } | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment