Visual Studio: How do I show all classes inherited from a base class?

Dan Esparza picture Dan Esparza · Nov 11, 2008 · Viewed 77.9k times · Source

In Visual Studio, How do I show all classes inherited from a base class?

For example, in ASP.NET MVC there are several 'ActionResult' types -- and they all inherit from / implement the base class ActionResult.

It looks like unless you just 'know' that View and Json are valid ActionResult types, there is no way you can easily find this information out.

Please prove me wrong.

Is there something in the object browser that makes this easy to find out?

I'm even up for suggestions of tools outside of Visual Studio to discover this information about various classes. For example: is there something in Resharper that will help me out?

Answer

countunique picture countunique · Jun 29, 2013

For VS2012,

  1. Navigate to file in solution explorer
  2. Expand and select your class
  3. Right click the class item (not the file item) -> Derived Types