Skip to content
makolyte

makolyte

Solve real coding problems

  • About
  • C#
  • SQL

finally

C# – Try/finally with no catch block

01/26/202505/17/2021 by Mak

Try/finally blocks are useful for when you are required to do something at the end of a method no matter what. The finally block always executes, even if there’s an exception (there is one case where this isn’t true, which I’ll explain in the Unhandled exception section below). There are a few common scenarios where … Read more

Categories C# Tags event-handler, exception, finally, logging, nameof, try-catch
About โ€ข Privacy Policy
© 2025 makolyte