如果你运行下面的代码,它实际上会在每次调用goto之后执行finally:
int i = 0;
Found:
i++;
try
{
throw new Exception();
}
catch (Exception)
{
goto Found;
}
finally
{
Console.Write("{0}\t", i);
}
为什么?
https://stackoverflow.com/questions/1141502
复制相似问题