Finding Dead Members

  • Thread starter Thread starter dvestal
  • Start date Start date
D

dvestal

I inherited a large quantity of legacy code, and I very frequently
find methods, constants, properties, variables, etc., that are no
longer referenced by any code. Does anyone know of that can display a
list of assembly or solution members that aren't actually referenced
anywhere within the assembly or solution?
 
You could use Reflector to do this. If you highlight a method, you can
right click and select "analyze", which then gives you a pane in the right
hand side of the app which would then have a number of elements to tell you
how it is used in the rest of the assembly (and any other assemblies which
are currently loaded into Reflector).
 
Plus they have a 30 day free trial so you can clean up your code before it
expires without having to buy it. It's worth the cost, though.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top