如何识别被覆盖的属性的引用位置? [英] How to identify where an overridden property is referred?
本文介绍了如何识别被覆盖的属性的引用位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的代码如下所示。将光标放在SelectSPName上并按Shift + F12查找其所有引用。但它没有显示。如何识别所有它的参考?
I''ve code as given below. Placed cursor on SelectSPName and pressed Shift+F12 to find all its reference. But it is not shown. How to identify all it''s reference?
public partial class CUtilitiesConfig
{
........
.........
public override string SelectSPName
{
get
{
return CUtilitiesConfig.ConstSelectSPName;
}
}
}
推荐答案
从逻辑上讲,你不知道是什么参考文献特别是对于被重写的对象 - 因为调用总是被写入基类并且在运行时由系统转移到最新重载,所以没有对派生类版本的特定引用。
Logically, you cannot know what references there are specifically to an overridden object - since the call is always written to the base class and diverted by the system to the "newest" overload at run time there are no specific references to a derived class version.
>
这篇关于如何识别被覆盖的属性的引用位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文