什么是集合类型名称中的 '1 [英] What is '1 in Collection type Name

查看:21
本文介绍了什么是集合类型名称中的 '1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道集合类型名称中的 '1 是什么意思?例如:List'1, IList'1 有人知道那是什么吗?

I was wondering what '1 means in Collection type name? For example: List'1, IList'1 Does anybody know what that is?

推荐答案

反引号表示:

泛型类型的名称以反引号 (`) 结尾,后跟数字表示泛型类型参数的数量.这样做的目的名称修改是为了允许编译器支持泛型类型相同的名称但具有不同数量的类型参数,出现在相同的范围.

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

这篇关于什么是集合类型名称中的 '1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆