.netrefactoringndepend

Determine Unused Methods and Properties


I have a self-contained solution (none of the DLLs are used in any other project, so no worrying about methods being used somewhere else).

I'm trying to figure out a way to determine every method/property that is not in use at all.

I can't just look at private methods/properties, I need to also check public methods and properties.

I used a program in the past that did this, but only for private methods/properties (things it guaranteed weren't used by another project). Even if I could remember what it was, it did not meet my needs.

I've looked at nDepend, but I'm not sure if this is something standard in the application, or if I will need to write a custom CQL statement for it.

Does anyone know of an application that does this, or if nDepend can do it? How hard it would be to do in nDepend?


Solution

  • Resharper can give you this kind of information if you enable solution wide analysis.