Show just own usages and base usages of method

Hi,

In Rider, I can see the number of Own and base class usages of this dispose method:

However, I can't seem to see this list itself! When I click on it, I get the list of all IDisposable.Dispose() usages in my project, of which there are thousands. Is there a way to see the list of own and base usages that are identified by the hint here?

Thanks!

0
1 comment
Hello Thomas,

Thank you for contacting Rider support.

Regrettably, there is no way to search for usages of exact method implementation yet.

We implemented the Find Usages Advanced (Edit | Find Usages | Find Usages Advanced) feature in Rider 2023.2 EAP (https://www.jetbrains.com/rider/nextversion/) which partially solves this problem. It allows searching for usages of method implementation excluding usages of a method from base class, but now it also shows usages of the same method implemented in derived classes. 

So, when you search for usages of a method that is not overridden in any derived classes, you will get what desired behavior.
I created the following improvement request on our tracker:
Find Usages Advanced. Option to search for exact implementation usages: https://youtrack.jetbrains.com/issue/RSRP-478266

We would appreciate it if you could upvote it to demonstrate your interest.

Should you have any other questions or difficulties, please let me know.
Have a nice day!
0

Please sign in to leave a comment.