From the course: Visual Studio 2019 Essential Training
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Find all references - Visual Studio Tutorial
From the course: Visual Studio 2019 Essential Training
Find all references
- [Instructor] You're working in your code and you're looking at this Author class and this Book class and you're curious, you think to yourself, I wonder where this Author class is being used in this project. Here's how you can find out. Right click, and choose Find All References. That opens this window across the bottom of the screen and it shows that it's used in a couple of places. It's used in this Publication.cs file as a property type. So, let me click on that and you'll notice that at the top of the screen, Visual Studio changes and it shows me the content of the Publication.cs file. It's also used here in this BookDataService.cs file. And I think you get the idea how this works. Let's try it with the Book class. I'll go to the Book definition, right click, Find All References. The contents of this window are replaced and now I have a longer list of locations of where the Book class is being used. Some of the things you an do inside this screen is filter the list. Right now…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
-
-
(Locked)
Use the enhanced editor scrollbar2m 49s
-
(Locked)
Use the Class View to explore classes2m 30s
-
(Locked)
View class relationships with Class Diagram6m 5s
-
(Locked)
Look up type information5m 11s
-
(Locked)
Use Peek Definition to see inline definitions1m 50s
-
(Locked)
Find all references2m 32s
-
(Locked)
See critical reference info inline with CodeLens2m 23s
-
(Locked)
Find content and files with the Go To tool3m 58s
-
(Locked)
-
-