Reputation: 99408
In Visual Studio 2015 for C#, what does the reference
shown by Visual Studio in a line before the declaration of some method actually mean?
What kinds of items does the reference
consist of?
I.e. what are the items shown by reference
?
Are they simply all the strings that match the method's name, or some subset of all matching strings?
For example, the reference shown in the line before the declaration of the overriding method, includes
I can't figure out what reference
means and consists of.
Upvotes: 0
Views: 295
Reputation: 4622
This is called CodeLens references. References can help you see where and how the individual parts of your code are used in your solution.
Clicking the reference count opens the CodeLens window showing all the places where references exist in the solution. Hovering over a reference will show a small code snippet of the calling code giving you more context when needed.
Hope it helps!
Upvotes: 2