开发者

Check to see if a c# method is used [duplicate]

开发者 https://www.devze.com 2023-02-02 20:46 出处:网络
This question already has answers here: 开发者_Go百科 Closed 12 years ago. Possible Duplicate: Find unused code
This question already has answers here: 开发者_Go百科 Closed 12 years ago.

Possible Duplicate:

Find unused code

I am wanting to go through our solution and remove any unused code. I have several projects included in this solution and do not want to go one by one. I am using Visual Studio 10, .net 4.

Is there a tool that will tell me where all the unused methods are?


Resharper will; unless you want a report generated. iirc FxCop will too.

EDIT: related question: Visual Studio 2008 / C# : How to find dead code in a project?


I believe that Resharper has some features that can do that - I am not sure if VS2010 could on it's own.

0

精彩评论

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

关注公众号