简体   繁体   English

查看呼叫层次结构说 Cursor 必须在成员名称上

[英]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:我要做的是:

  • double click at the interface双击界面
  • then click 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.

相关问题 Visual Studio调用层次结构视图:以编程方式调用它 - Visual Studio Call Hierarchy View: call it programmatically unity“成员修饰符”public“必须在成员类型和名称之前”错误 - Unity “member modifier ”public“ must precede the member type and name” error “成员修饰符'静态'必须在成员类型和名称之前”错误C# - “Member modifier 'static' must precede the member type and name” Error C# 这个错误意味着什么:成员修饰符'public'必须在成员类型和名称之前 - What does this error mean: Member modifier 'public' must precede the member type and name 在编写 DefaultTrackableEventHandler.cs 脚本时,如何修复“成员修饰符”受保护”必须位于成员类型和名称之前 - How to fix 'member modifier 'protected' must precede the member type and name when scripting DefaultTrackableEventHandler.cs 错误CS1585:成员修饰符'public'必须位于成员类型和名称之前 - Error CS1585: Member modifier 'public' must precede the member type and name LINQ:无效的匿名类型成员声明符。 必须使用成员分配,简单名称或成员访问权限来声明匿名类型成员 - LINQ: Invalid anonymous type member declarator. Anonymous type members must be declared with a member assignment, simple name or member access 获取 object 调用层次结构 - Get object call hierarchy MVVM和View / ViewModel层次结构 - MVVM and View/ViewModel hierarchy .net应用程序调用层次结构浏览器? - .net app call hierarchy explorer?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM