[英]View Call Hierarchy says Cursor must be on a member name
I've read this great post about how to find all implementations of an interface. 我已经阅读了这篇关于如何查找接口的所有实现的精彩文章。 However, after clicking in context menu
View Call Hierarchy
, then it says Cursor must be on a member name
:但是,在单击上下文菜单
View Call Hierarchy
后,它会说Cursor must be on a member name
:
What I do is:我要做的是:
View Call Hierarchy
View Call Hierarchy
How is it possible to see View Call Hierarchy
by clicking at the interface?如何通过点击界面
View Call Hierarchy
?
That question is about implementations of an interface method .这个问题是关于接口方法的实现。 You want implementations of the interface as a whole.
您需要整个接口的实现。
Just right-click the interface and click "Go To Implementation (Ctrl+F12)", it's right there in the menu name.只需右键单击该界面,然后单击“Go To Implementation (Ctrl+F12)”,它就在菜单名称中。 This will open the class if one exists, or show a list of classes if multiple implement it.
这将打开 class(如果存在),或者显示一个类列表(如果有多个实现它)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.