Reputation: 16196
I have legacy C# code and I am using Visual Studio 2008. I am looking for a tool, sort of code-analyzer that would say to me which class are not used and also some other useful information that might useful for code optimization.
If there is exact duplicate please specify.
Thank you.
Upvotes: 5
Views: 659
Reputation: 95334
The C# Test Coverage tool will tell you which code blocks (methods) are not executed during any single (or set) of runs. If you exercise your code thoroughly, blocks not executed are strong candidates for dead code.
Upvotes: 1