Question

I am wondering if there is any way to list all the calls to a function in source code, so that I could see the dependencies if I modify that function.

One method I use is to search the function name in the "Entire Solution" but I am looking for a better way.

Was it helpful?

Solution

Right-click on the call and select "Find All References".

OTHER TIPS

A brute force method is to change the name of the function and recompile and look at the errors. Sometimes I have trouble with the Find References functionality in VS.

On method declaration: Ctrl+K, Ctrl+T

Use NDepend. It comes with a VS add-in that allows you to do CQL queries on the fly. See this screenshot.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top