开发者

Find uncalled code [duplicate]

This question already has answ开发者_高级运维ers here: Closed 12 years ago.

Possible Duplicate:

What tools and techniques do you use to find dead code in .NET?

Does anyone know of a tool that can find functions that are not being called?

Clarification: functions that are not being called by anything in the solution. Should not matter if they are public, private etc.


There are several tools available which will do this to varying degrees of depth.

  • Resharper
  • NCover
  • FxCop


ReSharper will identify private or internal methods that are not called.


NCover will give you all kinds of code coverage goodness, however I believe it's a bit expensive.


Microsoft's FxCop can do that for you.


try ncover, its good tool which helps in refactoring a lot


i myself hate Resharper because their many thing goes wrong in Resharper. you need to use telerik customization it can be better then resharper.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜