如何识别被覆盖的属性的引用位置?

编程入门 行业动态 更新时间:2024-10-21 18:48:17
本文介绍了如何识别被覆盖的属性的引用位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我的代码如下所示。将光标放在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.

更多推荐

如何识别被覆盖的属性的引用位置?

本文发布于:2023-11-08 07:41:16,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1568761.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:被覆   属性   如何识别   位置

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!