s are used to clean up resources when exiting a function. I would recommend using the
] idiom. It also works works well in the presence of exceptions.
For C# I would use
. If that's not possible, I'd use a
clause to clean up.
Everything else will eventually end up being messy.