【发布时间】:2014-05-08 14:03:37
【问题描述】:
假设我们有以下 IEnumerable 示例:
IEnumerable<int[]> veryLargeJaggedArray =
{
new int[] {1, 3, 5},
new int[] {0, 2, 4},
new int[] {11,22,6},
...lots of data streaming in
}
如果底层集合不基于 ICollection(即没有快速 Count() 查找),应用 c# Linq 执行聚合类型列操作的最有效方法是什么?
这个问题将我的previous question 扩展到一个更实际的案例。
【问题讨论】:
标签: c# linq stream ienumerable