Dead Code Analyzer Tool RRS feed

  • Question

  • Hi,


    Is there any tool out there that will help me identify dead code in my solution.




    Tuesday, May 29, 2007 11:18 AM


  • How detailed do you want? Function-level or within a function?


    I believe FxCop (which includes integrated VS support) includes some dead code detection at the function level.  I believe C# will check for within a function.

    Note that methods can be accessed from outside the assembly, so a method may need to be private, etc to really be "dead".

    Tuesday, May 29, 2007 9:20 PM