查找未使用code [英] Find unused code

查看:160
本文介绍了查找未使用code的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要重构一个大型C#应用程序,我发现了很多的功能,从未使用过。如何检查未使用code,这样我就可以删除所有未使用的功能呢?

I have to refactor a large C# application, and I found a lot of functions that are never used. How can I check for unused code, so I can remove all the unused functions?

推荐答案

是的,ReSharper的做到这一点。右键单击您的解决方案,并选择查​​找$ C C $问题。其中一个结果是未使用的符号。这将显示你的类,方法等,一点用都没有。

Yes, ReSharper does this. Right click on your solution and selection "Find Code Issues". One of the results is "Unused Symbols". This will show you classes, methods, etc., that aren't used.

和你不必买NDepend的。

And you don't have to buy NDepend.

这篇关于查找未使用code的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆