Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Resharper: How to find usage of a specific implementation of an interface

I'm quite often having an issue with the Find usage of resharper.

By example, I see that one of my object implements the IDisposable interface and I want to go at the place where this Dispose method is called.

But if I do Find usage or Inspect incoming call, it search for all the call to IDisposable.Dispose which is not what I'm looking for.

Any advice on how I can find where this specific instance is called? Before there was a Find usage advanced but I don't have this option anymore after upgrading to the latest version of resharper.

(I've Resharper V9.0 update 1 and Visual Studio 2013)

like image 600
J4N Avatar asked Oct 09 '15 09:10

J4N


1 Answers

Nice question. I also had a few times this use case (e.g. for ToString() implementation references) but I was always too lazy to look if R# supports this.

The answer is to use the "Find Usages Advanced" feature (Ctrl+Shift+Alt+F12) and then select the desired member.

Dialog Screenshot

like image 195
ulrichb Avatar answered Sep 24 '22 19:09

ulrichb