I'm evaluating NDepend as a part of an effort to enforce code quality and correct framework usage, and I am looking for a way to write the equivalent of CA2000: Dispose objects before losing scope. Anyone else has tried to do this, or has knowledge about how to do it?
            Asked
            
        
        
            Active
            
        
            Viewed 194 times
        
    1 Answers
0
            
            
        This rule is not implementable through NDepend because the context is inside method body. NDepend is more about writing code rules concerning the program structure like for example:
        Patrick from NDepend team
        
- 13,237
 - 6
 - 61
 - 92