C# - IEnumerable, IQueryable, ICollection, IList, IEnumerator
类图

对比
| 说明 | 支持 | |
| IEnumerator | 充当枚举数, 并非集合 | |
| IEnumerable | 实现对象成为可枚举类型 | where, single, first, select, ElementAt |
| IQueryable | 提供对未指定数据类型的特定数据源的查询进行计算的功能, | where, single, first, select, ElementAt |
| ICollection | where, single, first, select, ElementAt, Add | |
| IList | where, single, first, select, ElementAt, Add, [] | |
| DbSet | where, single, first, select, ElementAt, Add, Attach, find |


浙公网安备 33010602011771号