|
public static IEnumerable<TSource[]> Chunk<TSource>(this IEnumerable<TSource> source, int size) |
I'm creating a brand-new blank console app with dotnet new console. When I try to use the Chunk extension method on a simple array or list, it results in the following error:
Error CS0121 The call is ambiguous between the following methods or properties: 'System.Linq.Enumerable.Chunk<TSource>(System.Collections.Generic.IEnumerable<TSource>, int)' and 'System.Linq.Enumerable.Chunk<TSource>(System.Collections.Generic.IEnumerable<TSource>, int)'
runtime/src/libraries/System.Linq/src/System/Linq/Chunk.cs
Line 36 in 3f7ffdd
I'm creating a brand-new blank console app with
dotnet new console. When I try to use theChunkextension method on a simple array or list, it results in the following error: