在 C# 中,System.Collections.Generic.IEnumerable`1 中 IEnumerable 之后的 1 是什么意思

2024-01-07

是什么意思1在 IEnumerable 之后:System.Collections.Generic.IEnumerable`1


它是类型的泛型数量,或者换句话说,泛型类型支持的类型参数的数量。IEnumerable<T>支持单一类型参数。如果你要看看Dictionary<TKey, TValue>您会注意到 arity 值为 2。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

在 C# 中,System.Collections.Generic.IEnumerable`1 中 IEnumerable 之后的 1 是什么意思 的相关文章

随机推荐