Why to use “finally” block in C#?
Ask by Anonymous User
Updated 20 Sep 2020
Finally block will be executed irrespective of exception, while executing the code in try block when exception is occurred then control is returned to catch block then in the last “finally” block will be executed the closing connection to database / releasing the file handlers can be kept in “finally” block.