We shouldn’t write this:
try { something } catch { something } finally { return }
because finally block always return!!!
The state of variable which we want return is overridden by finally block.
..is very simple to remember
Advertisement
October 29, 2010 by federico casani
We shouldn’t write this:
try { something } catch { something } finally { return }
because finally block always return!!!
The state of variable which we want return is overridden by finally block.
..is very simple to remember