gpt4 book ai didi

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

转载 作者:太空狗 更新时间:2023-10-29 18:07:27 25 4
gpt4 key购买 nike

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

最佳答案

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

关于c# - 在 C# 中,在 System.Collections.Generic.IEnumerable`1 中的 IEnumerable 之后的 1 是什么意思,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16768208/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com