集合类型名称中的“1” [英] What is '1 in Collection type Name

查看:84
本文介绍了集合类型名称中的“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天全站免登陆