Sunday, September 14, 2014

When you right-click in Visual Studio 2013 and pick "Go to Declaration" only to end up at an interface...

...this does not mean you've hit a brick wall. Right-click on the name of the interface at the interface itself next and pick "Go to Implementation" to find the class hydrating the interface with its public methods. Do not manually search for the name of the interface to find its dance partner. I'm embarrassed to admit that I used to do this. Ha.

Addendum 9/15/2014: Ctrl-Shift-G (which is perhaps a ReSharper shortcut???) will allow you to go to the implementation if you use this hot key after clicking upon the name of an interface at an interface, or will allow you to pick between going to the declaration of the interface or drilling two steps down to the implementation of the interface (from upstream where in code an instance of the interface is instantiated). This was mentioned to me over Twitter by @jphamilton when I first advertised this blog posting.

No comments:

Post a Comment