查找未使用codecode

由网友(怒放到荼蘼︶°)分享简介:我要重构一个大型C#应用程序,我发现了很多的功能,从未使用过。如何检查未使用code,这样我就可以删除所有未使用的功能呢?I have to refactor a large C# application, and I found a lot of functions that are never used. How...

我要重构一个大型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.

阅读全文

相关推荐

最新文章