Skip to content

Upgrading morelinq 3 to 4

Breaking3.4.2 → 4.4.0Breaking11Deprecated1New7Changed15Fixed5Other33

BreakingUpgrade verdict

10 breaking changes.

  • 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.
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.

Breaking10
Interleave no longer validates members of otherSequences.
Interleave
Removes Windowed, which has been obsolete since 3.0.
WindowedConcat
Removes the obsolete Concat method.
Concat
Removes Windowed, which is superseded by Window.
WindowedWindow
Retires Append, Batch, Concat, DistinctBy, Prepend, SkipLast, TakeLast and ToHashSet as extension methods since .NET provides them.
AppendBatchConcatDistinctByPrependSkipLastTakeLastToHashSet
Adds Minima and Maxima to supersede MinBy and MaxBy.
MinimaMaximaMinByMaxBy
ToDataTable now validates that the expressions argument cannot be null.
ToDataTable
Subsets(0) now returns an empty set.
Subsets
Batch now returns IEnumerable<T[]> instead of the previous element type.
Batch
Changes Batch to return arrays instead of the previous element type.
Batch
Deprecated1
Marks MinBy and MaxBy obsolete in favor of Minima and Maxima; they will likely be removed in a future version.
MinByMaxByMinimaMaxima