Remove unused methods and properties from the assemblies.

S

srikanth.tv

Hi,

My application is splitted into more than one assembly.
And I
want to clean up the methods which are not called or not used among
any of
the assemblies. And also I want to remove the code for those methods
which are not called in any of my assemblies.

1) I want to remove all methods (either private, protected, internal or
public) methods which are not called (invoked) among any of my
assemblies.
2) If public access modifier is not required for that method then I
want to make it either internal of protected which ever is applicable.
3) If no method is overridden in the derived classes which are marked
as virtual in base classes then I want to remove the virtual keyword
from the method signature in the base class.


It will be great if any one suggests me the tool which does all of
tasks and it will be great if that tool can remove the code from my
source code as well. Otherwise it will be great if any of the tools
generates a report based on my conditions.



Can any one suggest me the tools available to find and remove the
un-used
methods or members?



Thanks in advance.
 

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

Top