C# – Will Try / Finally (without the Catch) bubble the exception

cexception handlingnetvb.net

I am almost positive that the answer is YES. If I use a Try Finally block but do not use a Catch block then any exceptions WILL bubble. Correct?

Any thoughts on the practice in general?

Seth

Best Answer

Yes, it absolutely will. Assuming your finally block doesn't throw an exception, of course, in which case that will effectively "replace" the one that was originally thrown.