Exemple #1
0
        public async void MainMethod()
        {
            SecondThread secondThread = new SecondThread();

            Console.WriteLine("Main method with await Start");

            string message = await secondThread.SecondMethod();

            Console.WriteLine(message);

            Console.WriteLine("Main method with await End");
        }