New in Visual Studio 2010: Call hierarchy

Call Hierarchy is something which I think will be a very handy new feature in VS2010. First of all you can see which parts of your code are making a call to a specified method and then you can see which calls are made from this method..and so on. To specify your method just right click on the method name and select View Call Hierarchy. Shortcut for Call hierarchy is CTRL + ALT + K.

image

This will show you what calls are made to the method and also which calls are made from that method. This is very if you need to know where a certain method is used. You also have Find All References. I know that but that’s not comparable with Call Hierarchy. The level of detail with Call Hierarchy is much bigger. As you can see in the screenshot below, you can drill down, see the complete calling structure. You get the idea…

image

If you have an interface and want to know which concrete classes are using your interface, then you can also use Call hierarchy:

image

View this post to see all the new features of VS2010 which I have discussed


No comments yet. Be the first.

Leave a reply

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word