Skip to content

5.0.0

Latest
Compare
Choose a tag to compare
@thomaslevesque thomaslevesque released this 11 Nov 23:22
96a4f4b

New

  • New TFM for .NET 6.0.
    The following methods that existed in Linq.Extras have been added to Linq in .NET 6.0:

    • DistinctBy
    • UnionBy
    • Min and Max overloads that accept an IComparer<T>
    • MinBy and MaxBy
    • FirstOrDefault, LastOrDefault, and SingleOrDefault overloads that accept an explicit default value

    This would cause conflicts if both System.Linq and Linq.Extras namespaces are imported. In the new .NET 6.0 TFM, these methods are no longer extension methods, so they don't cause conflicts, but are still callable at runtime (e.g. in case of indirect dependencies between project that end up using these methods). They're also marked obsolete in the new TFM.

    In addition, the Batch method is marked obsolete in the .NET 6.0 TFM, since Linq's new Chunk method does exactly the same thing.

Fixed

  • Ambiguous call for ToHashSet (#19) : was supposedly fixed in 4.1.0, but caused another issue (#22)
  • MissingMethodException caused by using ToHashSet method (#22)
  • Ambiguous call for new methods introduced in .NET 6.0 (#24)