In Visual Studio 2010, if I right-click a method and choose "Find All References", it simply displays use of all methods with the same name rather than use of the method of that actual class.
The solution is C# rather than C++, so I can't find a way to switch to accuracy mode. Also, I cannot simply make the method private or comment it out to generate errors as the method is an override
:
public override string ToString() { ... }
Is there any way of finding all uses of a particular class method in a solution without trawling through every single name match (in this case every instance of ToString()
in the solution)?
Using Daniel Hilgarth's comment I found a solution: temporarily remove override
from the declaration and it will show only references to that classes ToString()
rather than the ToString()
for all object
's.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With