Upgrading morelinq 3 to 4
Breaking3.4.2 → 4.4.0Breaking11Deprecated1New7Changed15Fixed5Other33
BreakingUpgrade verdict
10 breaking changes.
In plain terms
- Interleave no longer validates members of otherSequences.
- Removes Windowed, which has been obsolete since 3.0.
- The old Concat method is gone; use the standard LINQ Concat instead.
- The Windowed method is removed; use Window instead.
Must act Top 4 of 11 that need code or config changes
Target frameworks requirement changed in 4.4.0: .NETFramework4.6.2, .NETFramework6.0, .NETStandard1.0, .NETStandard2.0, .NETStandard2.1 → .NETFramework6.0, .NETFramework8.0, .NETFramework9.0, .NETStandard2.0, .NETStandard2.1.
Drops netstandard.library, system.valuetuple.
What you must change
Breaking10
Interleave no longer validates members of otherSequences.
InterleaveRemoves Windowed, which has been obsolete since 3.0.
WindowedConcatRemoves the obsolete
Concat method.ConcatRemoves
Windowed, which is superseded by Window.WindowedWindowRetires Append, Batch, Concat, DistinctBy, Prepend, SkipLast, TakeLast and ToHashSet as extension methods since .NET provides them.
AppendBatchConcatDistinctByPrependSkipLastTakeLastToHashSetAdds Minima and Maxima to supersede MinBy and MaxBy.
MinimaMaximaMinByMaxByToDataTable now validates that the expressions argument cannot be null.
ToDataTableSubsets(0) now returns an empty set.
SubsetsBatch now returns IEnumerable<T[]> instead of the previous element type.
BatchChanges
Batch to return arrays instead of the previous element type.BatchDeprecations to plan for
Deprecated1
Marks MinBy and MaxBy obsolete in favor of Minima and Maxima; they will likely be removed in a future version.
MinByMaxByMinimaMaxima