在C#是什么1 IEnumerable的在System.Collections.Generic.IEnumerable`1后的含义 [英] In C# what is the meaning of 1 after IEnumerable in System.Collections.Generic.IEnumerable`1

查看:317
本文介绍了在C#是什么1 IEnumerable的在System.Collections.Generic.IEnumerable`1后的含义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是 1 的IEnumerable后的含义: System.Collections.Generic.IEnumerable`1

解决方案

这是该类型的通用元数,或者换句话说,类型参数的数量泛型类型支持。 的IEnumerable< T> 支持单一类型的参数。如果你看看词典< TKEY的,TValue> 你会发现2一元数值

What is the meaning of 1 after IEnumerable in: System.Collections.Generic.IEnumerable`1

解决方案

It is the generic arity of the type, or put another way, the number of type parameters a generic type supports. IEnumerable<T> supports a single type parameter. If you were to look at Dictionary<TKey, TValue> you would notice an arity value of 2.

这篇关于在C#是什么1 IEnumerable的在System.Collections.Generic.IEnumerable`1后的含义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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