try
{
try
{
throw new Exception("From Try");
}
catch
{
throw new Exception("From Catch");
}
finally
{
throw new Exception("From Finally");
}
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
上述代码的输出是:From Finally
。throw-catch逻辑
为什么不是From Catch
?
- 或 -
我怎么能赶上&日志从两个例外之外?
整蛊......期待看到这个答案。 – riwalk 2010-09-29 22:33:02