Search for subclasses and implementations

My favorite way to find subclasses of class “X” or implementations of the interface “Y” was to use Red Gate Reflector. But I would like to know if there is a (free) way to do the same with VS 2010. Does 2010 already have this ability? Is there a plugin I can add?

In the object browser, where I can expect this function to be found, it does not seem to have this capability. It can tell you about the parent type, but it does not talk about derived types.

+3
source share
3 answers

It is no longer direct, but it works in all cases - temporarily change the class / interface that you modify for abstract, and add the abstract method .property and rebuild the solution :) all assembly errors point to direct / indirect children.

+1
source

Until I found the RedGate Reflector functionality for this need, I started using a partial solution. Using the regex search capabilities in VS, I introduce the following:

\:.@<place base class or interface here>

Example:

\:.@MyBase

Any derived interface or class created from "MyBase" defined in the solution will be returned.

0
source

I just found the free Margin Extension . With this, I can view the inheritance information directly in the code editor, and also go to the base / overridden elements (by right-clicking on the inheritance glyph).

0
source

All Articles