Find usages of inherited method only from a specific subclass?

主宰稳场 提交于 2019-12-05 04:35:16

You should be able to use Structural Search and Replace to set up a pattern to find the usages. Go to ReSharper -> Find -> Search with Pattern. Create a pattern such as $exp$.Foo($args$). Then add an "expression" placeholder for exp. You can specify what type this should be, and check the tick box to specify exact type. Here you'd enter the fully qualified type All.Your.Namespaces.Sub2. Then add an "arguments" placeholder for args. Leave everything unchecked - it will match any number of arguments. Clicking find should find all calls to Foo from any expression that matches Sub2.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!