Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / October 2007

Tip: Looking for answers? Try searching our database.

Finding Dead Members

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dvestal@gmail.com - 26 Oct 2007 13:21 GMT
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?
Nicholas Paldino [.NET/C# MVP] - 26 Oct 2007 15:38 GMT
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).

Signature

         - Nicholas Paldino [.NET/C# MVP]
         - mvp@spam.guard.caspershouse.com

>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?
kh - 26 Oct 2007 17:15 GMT
ReSharper is pretty good at this kind of analysis

> 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?
Andrew Faust - 27 Oct 2007 07:17 GMT
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.

Signature

Andrew Faust
andrew[at]andrewfaust.com
http://www.andrewfaust.com

> ReSharper is pretty good at this kind of analysis
>
[quoted text clipped - 3 lines]
>> list of assembly or solution members that aren't actually referenced
>> anywhere within the assembly or solution?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.