mirror of https://github.com/icsharpcode/ILSpy.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
643 B
37 lines
643 B
using Microsoft.VisualBasic.CompilerServices; |
|
using System; |
|
|
|
[StandardModule] |
|
internal sealed class Program |
|
{ |
|
public static void SelectOnString() |
|
{ |
|
switch (Environment.CommandLine) { |
|
case "123": |
|
Console.WriteLine("a"); |
|
break; |
|
case "444": |
|
Console.WriteLine("b"); |
|
break; |
|
case "222": |
|
Console.WriteLine("c"); |
|
break; |
|
case "11": |
|
Console.WriteLine("d"); |
|
break; |
|
case "dd": |
|
Console.WriteLine("e"); |
|
break; |
|
case "sss": |
|
Console.WriteLine("f"); |
|
break; |
|
case "aa": |
|
Console.WriteLine("g"); |
|
break; |
|
case null: |
|
case "": |
|
Console.WriteLine("empty"); |
|
break; |
|
} |
|
} |
|
}
|
|
|