40 lines
915 B
C#
40 lines
915 B
C#
|
|
using System;
|
|
using System.Threading.Tasks;
|
|
|
|
class Program
|
|
{
|
|
static async Task Main(string[] args)
|
|
{
|
|
if (args.Length == 0)
|
|
{
|
|
Console.WriteLine("Usage: dotnet run -- ex1|ex2|ex3|ex4|ex5|ex6");
|
|
return;
|
|
}
|
|
|
|
switch (args[0].ToLower())
|
|
{
|
|
case "ex1":
|
|
await Ex1.Run();
|
|
break;
|
|
case "ex2":
|
|
await Ex2.Run();
|
|
break;
|
|
case "ex3":
|
|
await Ex3.Run();
|
|
break;
|
|
case "ex4":
|
|
await Ex4.Run();
|
|
break;
|
|
case "ex5":
|
|
await Ex5.Run();
|
|
break;
|
|
case "ex6":
|
|
await Ex6.Run();
|
|
break;
|
|
default:
|
|
Console.WriteLine($"Unknown example: {args[0]}");
|
|
break;
|
|
}
|
|
}
|
|
} |