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
andMax
overloads that accept anIComparer<T>
MinBy
andMaxBy
FirstOrDefault
,LastOrDefault
, andSingleOrDefault
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 newChunk
method does exactly the same thing.