Sle*_*ght 2 c# multithreading try-catch
method A()
{
try
{
Thread t = new Thread(new ThreadStart(B));
t.Start();
}
catch(exception e)
{
//show message of exception
}
}
method B()
{
// getDBQuery
}
Run Code Online (Sandbox Code Playgroud)
B中的例外但没有捕获.它在.net中合法吗?