5

If I find out about a new interface, does Visual Studio provide any means to find out all the classes that have inherited that interface?

No,I don't want the C# code to do that..I know that's available at stackoverflow itself.I just want to know if Visual Studio has any functionality to find out this info for any interface through intellisense or any shortcut??

GEOCHET
  • 20,623
  • 15
  • 71
  • 98
Josh
  • 12,636
  • 28
  • 109
  • 157

3 Answers3

4

Actually, VS can do it.

Go to the Object Browser, select .Net Framework vX, then navigate to an interface and expand Derived Types.

In VS2010, this feature is available in all views, but in earlier versions, it's only available in a complete framework list.

As other people have noted, Reflector can also do this, and, unlike Resharper, it is free.

SLaks
  • 800,742
  • 167
  • 1,811
  • 1,896
2

Visual Studio does not have this functionality. Resharper does. I think the closest you can get is right click on the interface and select Find All References.

Darin Dimitrov
  • 960,118
  • 257
  • 3,196
  • 2,876
  • Thanks Darin ...Resharper is a commercial tool tho...I wish there were free ones to do this... – Josh Dec 13 '09 at 16:34
1

Reflector does, it is free and excellent. Search for the interface name and expand the "Derived Types" node.

Hans Passant
  • 873,011
  • 131
  • 1,552
  • 2,371