Click here to Skip to main content
15,867,308 members
Articles / Programming Languages / C# 4.0

Try - finally alternative

6 Jun 2011CPOL 314   1
>>"What do you think about using block with delegate instead of finally? Does shorter code make better code?" Yes, in this case shorter version is better, and longer version helps only if you are trying to win obfuscation contest: the truth is the "delegate" version is actually longer :D...
Only logged in members can view this content

Please go to the C# 4.0 Table of Contents to view the list of available articles in this section.