gpt4 book ai didi

visual-studio-2012 - 在 Visual Studio 中查找对重写方法的所有引用

转载 作者:行者123 更新时间:2023-12-04 14:01:15 24 4
gpt4 key购买 nike

我有一个接口(interface)ISomething它定义了 GetSomething() .

我有一堆类(class)Something1 , Something2 ,... 全部实现 ISomething因此GetSomething() .

当我右键单击 Something1.GetSomething()并点击 Find All References , VisualStudio 显示所有对 ISomething.GetSomething() 的引用而不是实际的派生类。

我想知道是否有办法导航到 Something1.GetSomething()无需向下滚动 GetSomething() 的所有实现

最佳答案

Find All References 旁边是 View Call Hierarchy。它将对选定成员的引用分为 3 组:调用到、调用自和实现。你可能正在寻找最后一个。

Call Hierarchy

关于visual-studio-2012 - 在 Visual Studio 中查找对重写方法的所有引用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20519782/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com