Код: Выделить всё
Thread thread = new Thread(new ThreadStart(() => { throw new Exception(); }));
thread.IsBackground = true;
thread.Start();
while (true)
Console.WriteLine("Hello from main thread");
Подробнее здесь: https://stackoverflow.com/questions/135 ... pplication
Мобильная версия