OrderedLinqOps 1.2.0
dotnet add package OrderedLinqOps --version 1.2.0
NuGet\Install-Package OrderedLinqOps -Version 1.2.0
<PackageReference Include="OrderedLinqOps" Version="1.2.0" />
<PackageVersion Include="OrderedLinqOps" Version="1.2.0" />
<PackageReference Include="OrderedLinqOps" />
paket add OrderedLinqOps --version 1.2.0
#r "nuget: OrderedLinqOps, 1.2.0"
#:package OrderedLinqOps@1.2.0
#addin nuget:?package=OrderedLinqOps&version=1.2.0
#tool nuget:?package=OrderedLinqOps&version=1.2.0
OrderedLinqOps
Lightweight, streaming alternatives for some common LINQ operations (GroupBy, Join, GroupJoin) that rely on ordered inputs rather than hashing. This package provides "ordered" variants that process sequences in a single pass and yield results as the inputs are read.
This README is intended for consumers of the NuGet package. For full development, contribution, CI and testing information see the project repository.
Package
Install (Package Manager Console)
Install-Package OrderedLinqOps
Install (dotnet CLI)
dotnet add package OrderedLinqOps
Package ID: OrderedLinqOps
Supported Target Frameworks: netstandard2.0, netstandard2.1, net6.0, net8.0
Quick summary
- OrderedSelect: project while verifying the input is non-decreasing by a key
- OrderedGroupBy: streaming grouping assuming the input is ordered by key
- OrderedJoin / OrderedGroupJoin: streaming joins that assume both inputs are ordered by key
These methods are intended for scenarios where inputs are naturally ordered and you want a low-memory, streaming approach instead of hash-based grouping/joining.
OrderedGroupBy example
var pets = new[] // Input must be ordered by Age
{
new { Name = "Whiskers", Age = 1 },
new { Name = "Boots", Age = 4 },
new { Name = "Daisy", Age = 4 },
new { Name = "Barley", Age = 8 }
};
var grouped = pets.OrderedGroupBy(p => p.Age, p => p.Name);
// yields:
// 1 -> ["Whiskers"]
// 4 -> ["Boots", "Daisy"]
// 8 -> ["Barley"]
Correctness & exceptions
- Precondition: Inputs must be ordered according to the provided key selector and comparer. If ordering is not satisfied, methods throw ArgumentException during enumeration.
- Null checking: Public API performs null checks and throws ArgumentNullException for null arguments where appropriate.
Performance considerations
- These methods stream through inputs with minimal buffering. Use them when inputs are large and already ordered (sorted) — they avoid building full hash tables.
- If inputs are not ordered, do not use these methods (either sort first or use standard LINQ methods like GroupBy/Join which are hash-based or require buffering).
Licensing
Licensed under LGPL-3.0-or-later. See the package or project LICENSE file for details.
Support & reporting issues
If you find bugs, documentation errors, or want to request features, please open an issue in the project repository:
https://github.com/janslav/orderedLinqOps/issues
Include a short repro case when possible.
Release notes & versioning
The package follows semantic versioning. Release artifacts and full changelog are published with each NuGet release — see the package release notes on NuGet or the repository releases.
Contact / Contribution
For contribution, tests, CI, and development instructions, refer to the repository (this package README is intentionally concise for NuGet consumers). The repository contains development-oriented documentation including CI workflows, test instructions, and contribution guidelines.
Repository: https://github.com/janslav/orderedLinqOps
Thank you for using OrderedLinqOps!
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- No dependencies.
-
.NETStandard 2.1
- No dependencies.
-
net6.0
- No dependencies.
-
net8.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Updated to modern .NET SDK, fixed code quality issues, added multi-targeting support for .NET Standard 2.0/2.1, .NET 6.0 and .NET 8.0