Check to see if a c# method is used [duplicate]
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.
精彩评论