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

Cedric Vivier wrote:
> Merry x-mas,
> 
> This new rule in Correctness checks that disposable locals are always
> disposed before the method returns.
> 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.

Regards,

        Andrés

-- 


--~--~---------~--~----~------------~-------~--~----~
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