От: | another_coder | ||
Дата: | 22.05.15 10:18 | ||
Оценка: |
public static void RaiseException(object state)
{
Console.WriteLine("RaiseException");
throw new Exception();
}
static void Main(string[] args)
{
var d = new Thread(RaiseException);
d.Start();
Thread.Sleep(5000);
Console.WriteLine("waiting...");
Console.ReadKey();
}