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

c# – 什么是集合类型名称中的1

发布时间:2020-12-15 17:38:50 所属栏目:百科 来源:网络整理
导读:我想知道收藏类型名称中的“1”是什么意思?例如:List’1,IList’1有人知道是什么吗? 解决方法 反驳表示: The name of a generic type ends with a backtick (`) followed by digits representing the number of generic type arguments. The purpose of
我想知道收藏类型名称中的“1”是什么意思?例如:List’1,IList’1有人知道是什么吗?

解决方法

反驳表示:

The name of a generic type ends with a backtick (`) followed by digits
representing the number of generic type arguments. The purpose of this
name mangling is to allow compilers to support generic types with the
same name but with different numbers of type parameters,occurring in
the same scope.

http://msdn.microsoft.com/en-us/library/w3f99sx1(v=vs.110).aspx

(编辑:李大同)

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

    推荐文章
      热点阅读