加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

c# – 用于cref时的“T:”是什么?

发布时间:2020-12-15 08:43:58 所属栏目:百科 来源:网络整理
导读:T:part在这里使用cref属性意味着什么? see cref="T:System.Windows.Form.Control"/ 和 see cref="System.Windows.Form.Control"/ 解决方法 它实质上是编译器在文档中生成id时代码引用所指的内容的注释.这里,T表示被引用的名称System.Windows.Form.Control
T:part在这里使用cref属性意味着什么?
<see cref="T:System.Windows.Form.Control"/>

<see cref="System.Windows.Form.Control"/>

解决方法

它实质上是编译器在文档中生成id时代码引用所指的内容的注释.这里,T表示被引用的名称System.Windows.Form.Control是一个类型而不是命名空间或其他成员.

就其本身而言,文本System.Windows.Form.Control可能具有不同的含义.例如,它可以是命名空间,也可以是System.Windows.Form对象的Control成员.这有助于描述它到底是什么.

您可以在docs中查看编译器使用的其他约定的更多信息.

其他前缀如下:

N   namespace
T   type: class,interface,struct,enum,delegate
F   field
P   property (including indexers or other indexed properties)
M   method (including such special methods as constructors,operators,and so forth)
E   event
!   error string

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读