如何制定执行此分组的简单LINQ查询(使用查询语法)?
您可以按(index/chunkSize)对它们进行分组.例:
var result =
from i in array.Select((value, index) => new { Value = value, Index = index })
group i.Value by i.Index / chunkSize into g
select g;
Run Code Online (Sandbox Code Playgroud)