Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Chunk< TSource >()

static IEnumerable< TSource[]> System.Linq.Enumerable.Chunk< TSource > ( this IEnumerable< TSource > source,
int size )
inlinestatic

Definition at line 4340 of file Enumerable.cs.

4341 {
4342 if (source == null)
4343 {
4344 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.source);
4345 }
4346 if (size < 1)
4347 {
4348 ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.size);
4349 }
4350 return ChunkIterator(source, size);
4351 }

References System.Linq.size, System.Linq.source, System.Linq.ThrowHelper.ThrowArgumentNullException(), and System.Linq.ThrowHelper.ThrowArgumentOutOfRangeException().