From the course: Visual Studio Essential Training
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
View call hierarchy - Visual Studio Tutorial
From the course: Visual Studio Essential Training
View call hierarchy
- [Instructor] Let's say you are looking at your code and you'll want to know whether this method is used anywhere in your application. This method here, CapPriceAtMaximum. There are some tools that can surface that information to us. One is the code lens, which we'll look at later in this chapter. In this video, we'll look at the call hierarchy command. Here's what it does, it displays call relationships. It shows all calls to a selected method or a selected property or a constructor. This helps us understand how different parts of our code interact. In addition, it helps us navigate to the code, just like we saw with go to definition. It has a context menu, so I'll right click on this method CapPriceAtMaximum, and then go to View Call Hierarchy. That opens this window across the bottom of the screen. This is divided into two sections. On the left is a tree view that shows all of the methods I'm looking at. I only have one at the moment, but I can add others to this list. I can get…
Contents
-
-
-
-
-
-
-
-
-
-
-
(Locked)
Use the enhance editor scrollbar1m 54s
-
(Locked)
Use the Class View to explore classes2m 14s
-
(Locked)
View class relationships with class diagram4m 56s
-
(Locked)
Explore the code navigation and analysis tools3m 13s
-
(Locked)
Tip: Colorize local variables1m 36s
-
(Locked)
Lookup type and member information4m 58s
-
(Locked)
Lookup definitions with Peek Definition2m 3s
-
(Locked)
View call hierarchy4m 16s
-
(Locked)
Find all references to a code construct3m 10s
-
(Locked)
See critical reference info inline with CodeLens5m 11s
-
(Locked)
Explore the All-In-One search tool2m
-
(Locked)
Use the All-In-One code search tool2m 52s
-
(Locked)
Use the All-In-One feature search tool1m 46s
-
(Locked)
-
-