using System;
using System.Threading;
using System.Threading.Tasks;
public class Program
{
public static void Main()
DoSomethingBadly();
Thread.Sleep(100);
}
public static async void DoSomethingBadly()
await Task.Delay(1);
AnotherMethodForTheStackTrace();
public static void AnotherMethodForTheStackTrace()
throw new Exception("KABOOM");