Skip to content

LanguageExt.QueryExtensions.Distinct<T> conflicts with IQueryable.Distinct #1538

@Demivan

Description

@Demivan

Adding global using for v5 LanguageExt breaks Linq method chains:

Error CS0121 : The call is ambiguous between the following methods or properties:
'LanguageExt.QueryExtensions.Distinct<T>(System.Linq.IQueryable<T>)' and
'System.Linq.Queryable.Distinct<TSource>(System.Linq.IQueryable<TSource>)'

I see no reason to have this extension method as IQueryable has Distinct already. This was brought up before - #836 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions