可能重复:
In C# will the Finally block be executed in a try, catch, finally if an unhandled exception is thrown ?异常
,最终会在这种情况下执行的(在C#)?
try
{
// Do something.
}
catch
{
// Rethrow the exception.
throw;
}
finally
{
// Will this part be executed?
}
看到这个副本(或其中一个其他重复链接在那里):http://stackoverflow.com/questions/833946/in-c-will-the-finally-block-be-executed-in-a-try -catch-finally-if-an-unhandled – 2009-05-23 08:55:25