Performance of "returning" from a Try block
- by Mystagogue
Exception handling on Windows boxes (at least for C++) takes a performance hit if you exit a try block prematurely (such as executing a return statement) the same as if an exception were thrown.
But what about C#? Is there a performance hit for returning prematuraly from a try block, whether through a return statement or break statement?