Whatever is inside finally blocks is executed (almost) always, so what's the difference between enclosing code into it or leaving it unclosed?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
As mentioned in the documentation:
It is also worth reading this, which states:
So it is clear that code which resides in a
finally
clause will be executed even if a priorcatch
clause had areturn
statement.