im searching for any tool 开发者_Go百科that can detect any missing dispose calls on classes that do data access and file operations. And if it checks another performance issues it will be nice.
BTW, i need to run the tool over the code, not on the execution. Thanks!
DevExpress CodeRush does this for you:
see this article: Code Issues – Undisposed local
Code Rush home: DevExpress CodeRush
I have used the express version of this tool and personally I like it more than ReSharper.
The open-source Gendarme tool provides several rules wrt IDisposable.
disclaimer: I'm Gendarme's maintainer.
If you prefer a free utility, FxCop does this.
精彩评论