tags:

views:

1583

answers:

4

I've seen similar questions for java and VB.NET, but nothing general for .NET, or specific to C# yet.

In the past, I've decorated methods with the Obsolete attribute (passing true so the compiler will issue an error, as described in MSDN).

I'd be interested in seeing the suggestions of others (beyond tools like FxCop or ReSharper).

Edit: The reason for asking about tools other than FxCop or ReSharper is that I want to make sure I'm not missing out on other tools that would be helpful.

+6  A: 

Why do you need other answers? FxCop and Resharper do the trick, especially seeing as FxCop is now integrated into VS through "Code Analysis".

Quibblesome
I personally llike Resharper
craigmoliver
I use ReSharper a ton as well.
Scott A. Lawrence
I <3 Resharper too! :)
Quibblesome
Code Analysis in visual studio is just the same as running FxCop manually?
Svish
+3  A: 

it appears gray in ReSharper if it's dead code (at least within the solution only)...like uncalled methods or classes or unused properties and variables

cruizer
+1  A: 

Once again, I recommend AQTime. The static code analysis already does what you want (and a lot more), but the other profilers are even more useful. Worth the money, if you can afford it.

OregonGhost
I hadn't heard of this tool before. Thanks for the tip.
Scott A. Lawrence
+4  A: 

TDD + NCover

Chris Canal