BitzArt.LinqExtensions
2.1.3
Prefix Reserved
dotnet add package BitzArt.LinqExtensions --version 2.1.3
NuGet\Install-Package BitzArt.LinqExtensions -Version 2.1.3
<PackageReference Include="BitzArt.LinqExtensions" Version="2.1.3" />
<PackageVersion Include="BitzArt.LinqExtensions" Version="2.1.3" />
<PackageReference Include="BitzArt.LinqExtensions" />
paket add BitzArt.LinqExtensions --version 2.1.3
#r "nuget: BitzArt.LinqExtensions, 2.1.3"
#:package BitzArt.LinqExtensions@2.1.3
#addin nuget:?package=BitzArt.LinqExtensions&version=2.1.3
#tool nuget:?package=BitzArt.LinqExtensions&version=2.1.3
Overview
BitzArt.LinqExtensions provides additional LINQ extension methods, such as:
.If() - Conditionally applies a transformation to a sequence;
- Example:
public void Example(bool onlyEvenNumbers) { var numbers = Enumerable.Range(1, 10); var result = numbers .If(onlyEvenNumbers, q => q .Where(x => x % 2 == 0)); }
- Example:
.WhereIf() - Similar to
.If()
, but applies a condition to a sequence right away;- Example:
public void Example(bool onlyEvenNumbers) { var numbers = Enumerable.Range(1, 10); var result = numbers.WhereIf(onlyEvenNumbers, x => x % 2 == 0); }
- Example:
.Median() - Calculates the median value of a sequence;
- Example:
public void Example() { var numbers = Enumerable.Range(1, 10); var median = numbers.Median(x => x); }
- Example:
.OrderBy() - Additional ordering extensions.
- Comes with an
OrderDirection
enum, allowing usage like:public void Example(OrderDirection direction) { var numbers = Enumerable.Range(1, 10); // will order either ascending or descending, depending on the `direction` parameter var result = numbers.OrderBy(x => x, direction); }
- Comes with an
.Shuffle() - Randomly shuffles a sequence using Fisher-Yates shuffle. Allows for a predefined randomizer seed for deterministic results.
And others.
More packages
- BitzArt.LinqExtensions.Batching - Extension methods for sequence batching.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | 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 is compatible. 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. |
-
net8.0
- BitzArt.CoreExtensions (>= 1.3.1)
-
net9.0
- BitzArt.CoreExtensions (>= 1.3.1)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on BitzArt.LinqExtensions:
Package | Downloads |
---|---|
BitzArt.CA.Core
Clean Architecture boilerplate. Core library |
|
BitzArt.Flux
A universal WebApi client |
|
BitzArt.LinqExtensions.Batching
Batch LINQ Extensions |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
2.1.3 | 423 | 9/10/2025 |
2.1.2 | 1,833 | 4/29/2025 |
2.1.1 | 422 | 3/18/2025 |
2.1.0 | 162 | 3/17/2025 |
2.0.2 | 179 | 3/12/2025 |
2.0.1 | 158 | 3/12/2025 |
2.0.0 | 161 | 3/12/2025 |
1.9.0 | 167 | 3/11/2025 |
1.8.1 | 228 | 3/5/2025 |
1.8.0 | 749 | 2/27/2025 |
1.7.1 | 125 | 2/27/2025 |
1.7.0 | 3,039 | 10/23/2024 |
1.6.0 | 867 | 8/29/2024 |
1.5.5 | 3,486 | 7/18/2024 |
1.5.4 | 167 | 7/18/2024 |
1.5.3 | 921 | 7/2/2024 |
1.5.2 | 699 | 5/3/2024 |
1.5.1 | 357 | 4/16/2024 |
1.5.0 | 214 | 4/16/2024 |
1.4.0 | 718 | 4/2/2024 |
1.3.0 | 1,338 | 2/29/2024 |
1.2.0 | 1,028 | 11/6/2023 |
1.1.2 | 3,150 | 3/8/2023 |