How to use C# to find usages of a class or method?

Viewed 8930

In Visual Studio, I can right-click a class or method and choose "Find usages". That gives me a list of places in my solution where that piece of code is used. How can I do the same from my code?

3 Answers
Related