Is there a way to navigate to real implementation of method behind an interface?

后端 未结 15 1470
攒了一身酷
攒了一身酷 2020-12-07 08:58

In Visual Studio, when you right-click a method call, you go to the implementation of that method inside a class except if you access this method through an interface: in th

15条回答
  •  旧巷少年郎
    2020-12-07 10:00

    With VS2013 one can place cursor over the method, and use Navigate To... (CTRL+,), and it will display all locations where the name is declared. Doesn't work well if different interfaces uses the same method names.

    With VS2015 Update 1 there is now a new shortcut called "Go To Implementation".

提交回复
热议问题