Search code examples
visual-studio-2012visual-studio-2013

Find All References to an overriden method in VisualStudio


I have an interface ISomething which defines GetSomething().

I have a bunch of classes Something1, Something2,... all implement ISomething and therefore GetSomething().

When I right-click on Something1.GetSomething() and click Find All References, VisualStudio shows all references to ISomething.GetSomething() instead of the actual derived class.

I'm wondering if there is a way to navigate to Something1.GetSomething() without scrolling down all the implementations of GetSomething()


Solution

  • Right next to Find All References is View Call Hierarchy. It breaks up references to the selected member into 3 groups: Calls To, Calls From, and Implements. You're probably looking for the last one.

    Call Hierarchy