56 subscribers








  |  Technology  |  Science Stuff  |  Travel  |  Golf  |  Entertainment  |  Buddhism  |  Finance and Investing  |  Austin  |  India  |  Diet, Health  |  Petitions, Causes  |  

Posted on by Anuj Varma
VS 2010–View Call Hierarchy

Have you ever wanted to find all implementations of a particular interface method? Or all the overrides of an abstract method? In the past, this meant downloading a plugin such as Resharper or CodeExpress. With Visual Studio 2010, this feature is built in. Using the versatile Right Mouse Click on your method name,  an option called ‘View Call Hierarchy’ (not to be confused with the Call Stack available during a Debug session) is now available. 

View_Call_Hierarchy

As you can see, I can quickly see all the implementations of CreateAccount in the output window. Other things that this window shows include:

  1. “incoming” calls to this member  (calls To)
  2. “outgoing” calls mentioned in this member’s body  (calls From)
  3. Overrides - for abstract or virtual members
  4. Implementations – all interface member is implemented

 

Summary

View Call Hierarchy, built into VS 2010 proves to be a huge time saver since this it addresses a frequent need on larger OO projects. In addition, you do not need to rely on 3rd party plugin downloads (Resharper, Codeexpress etc.) to do this simple task.

Recent Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

*