Skip to content

Instantly share code, notes, and snippets.

@amigojapan
Last active January 4, 2020 15:49
Show Gist options
  • Select an option

  • Save amigojapan/acf95db85f8b55b5ed439bb4cfa345e9 to your computer and use it in GitHub Desktop.

Select an option

Save amigojapan/acf95db85f8b55b5ed439bb4cfa345e9 to your computer and use it in GitHub Desktop.
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