BaseExtensions Batch T  Method Kentico 8.1 API Reference
Returns input in batches of batchSize size.

Namespace: CMS.Base
Assembly: CMS.Base (in CMS.Base.dll) Version: 8.0.0.0 (8.1.5347.20411)

Parameters

collection
Type: OnlineSystem.Collections.Generic IEnumerable T 
Collection to be batched
batchSize
Type: OnlineSystem Int32
Size of each chunk (except for the last one)

Return Value

Type: OnlineIEnumerable OnlineIEnumerable T  
See Also