Nam G VU
Nam G VU

Reputation: 35374

How to get the list of members (properties/methods) that are not used anywhere in the solution?

I would like to explain my needs by a sample context below. I have a C# class ClassC which does task TaskT. I've just updated ClassC to fullfill TaskT in a second approach but still keep the first/old one intact.

Now I finished coding and want to remove all of the old codes related to the first approach. How can I do this in Visual Studio 2010?

Upvotes: 1

Views: 139

Answers (4)

RRUZ
RRUZ

Reputation: 136391

you can try using the NDepend tool.

Upvotes: 2

Ani
Ani

Reputation: 113402

Resharper, available as plugin for Visual Studio, does this sort of static code analysis, and more. Be careful, though, it is easy to trip yourself up with this sort of thing if you use reflection or other techniques that can fool static code analysis.

Upvotes: 1

thelost
thelost

Reputation: 6694

Can't you simply use the "Find all references" feature ?

Upvotes: 0

Jon
Jon

Reputation: 2279

Try Resharper. http://www.jetbrains.com/resharper/

Upvotes: 0

Related Questions