On Sun, Dec 28, 2008 at 3:08 AM, "Andrés G. Aragoneses" <[email protected]>wrote:

> Hey! Good rule, I've always wanted to write it. Just one comment:
>

Thanks,


>
> Cedric Vivier wrote:
> > Use 'using' statement (or a try/finally block) to guarantee local
> > disposal even in the event an uncatched exception occurs.
>
> Aren't we language-agnostic? I would specify that the using keyword *if*
> using C#, or try-catch blocks if not. I don't remember now if VB.NET has
>  a counterpart on it.


"using" on an IDisposable exists on C#, VB.NET, Boo, Nemerle, and probably
others.
So I guess it's pretty much language-agnostic in the .NET world.
The solution message already proposes "or a try/finally block" (which is the
pattern to use, not try/catch).

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Gendarme" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/gendarme?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to