49
(Choose 1 answer)
A. Compile-time error
B. Hello
Main thread
C. An exception will be thrown
D. Main thread
Hello
static async Task Display (string message){await Task.Delay(2000);Console.WriteLine(message);
class Program{
} async static Task Main(string[] args) { Display ("Hello");Console.WriteLine("Main thread");
Console.ReadLine();
}
}
Which one of the following is the output of the above code?