如何显示接口方法的所有实现实例? [英] How to show all implement instance of an interface method?

查看:27
本文介绍了如何显示接口方法的所有实现实例?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的项目中,使用了大量的接口类.由于浏览代码的定义(通过选择方法名称并按 F12 或右键单击 + 转到定义),我很难阅读以理解代码.

In my project, there are tons of interface classes used. I have difficulties in reading to understand the code since browsing the definition of the codes (by selecting the method name and pressing F12 or right click + go to Definition) just lead me to the interface.

Visual Studio 2010 中是否有办法(内置或插件)列出接口方法的所有实例?

Is there a way (built-in or addon) in Visual Studio 2010 to list out all of the instance of a method of an interface?

希望收到您的来信.

推荐答案

一段时间后,我发现只要使用 VS 2010,我就可以单独存档:使用调用层次结构"!

After a while, I found that just with VS 2010, I can archive this all alone: Use "Call Hierarchy"!

  1. 将光标放在接口类的任何成员上
  2. 右键单击并选择查看呼叫层次结构"
  3. 在调用层次结构"窗格中打开实现..."节点.

就是这样.欣赏^_^!

That's it. Enjoy ^_^!

这篇关于如何显示接口方法的所有实现实例?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆