为什么“Console.WriteLine("asdf");”这一行没有被执行?其他所有语句都被执行了。难道不应该被执行,因为我们无法跳出finally块吗?
static bool Func()
{
try
{
try
{
}
finally
{
try
{
throw new ApplicationException();
}
finally
{
Console.WriteLine("asd");
}
Console.WriteLine("asdf");
}
}
finally
{
Console.WriteLine("asd");
}
}