开发者

Tool to detect missing disposes

开发者 https://www.devze.com 2023-04-06 19:30 出处:网络
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.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号