Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/336.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 什么是';集合类型名称中的1_C#_Generics_Collections - Fatal编程技术网

C# 什么是';集合类型名称中的1

C# 什么是';集合类型名称中的1,c#,generics,collections,C#,Generics,Collections,我想知道“1”在集合类型名称中是什么意思?例如:列表'1,IList'1有人知道那是什么吗?倒勾表示: 泛型类型的名称以倒勾(`)结尾,后跟数字 表示泛型类型参数的数量。目的 名称mangling允许编译器支持具有 相同的名称,但具有不同数量的类型参数,出现在 同样的范围 我一直认为这是通用参数的数量,因为您可以在参数数量上超载。(我假设它充当了名称损坏来区分重载)

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

倒勾表示:

泛型类型的名称以倒勾(`)结尾,后跟数字 表示泛型类型参数的数量。目的 名称mangling允许编译器支持具有 相同的名称,但具有不同数量的类型参数,出现在 同样的范围


我一直认为这是通用参数的数量,因为您可以在参数数量上超载。(我假设它充当了名称损坏来区分重载)