Performance of "returning" from a Try block
Posted
by Mystagogue
on Stack Overflow
See other posts from Stack Overflow
or by Mystagogue
Published on 2010-05-12T05:41:07Z
Indexed on
2010/05/12
5:44 UTC
Read the original article
Hit count: 341
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?
© Stack Overflow or respective owner