Skip to content

System.Linq.Enumeration.Chunk - CS0121: The call is ambiguous between the following methods or properties #100370

@pjirsa

Description

@pjirsa

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)'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions