Tool to detect missing disposes

落爺英雄遲暮 提交于 2019-12-08 01:01:40

问题


im searching for any tool 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!


回答1:


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.




回答2:


The open-source Gendarme tool provides several rules wrt IDisposable.

disclaimer: I'm Gendarme's maintainer.




回答3:


If you prefer a free utility, FxCop does this.



来源:https://stackoverflow.com/questions/7492740/tool-to-detect-missing-disposes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!