I know you can perform a 'Find All References' on a function and you can determine if it is being used anywhere, but is there a tool that will go through all of my functions and highlight any that are not called any开发者_Go百科where in the code?
I believe ReSharper can do what you want. More specifically, the Safe Delete command should at least faciliate the job. Although I haven't tried it, the Code Cleanup tool may well do the whole thing automatically.
I prefer ReSharper for this, but if you're looking for a free product, Microsoft FxCop will identity unused public methods.
精彩评论