budul.EnumerableExtensions 1.34.1

dotnet add package budul.EnumerableExtensions --version 1.34.1
                    
NuGet\Install-Package budul.EnumerableExtensions -Version 1.34.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="budul.EnumerableExtensions" Version="1.34.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="budul.EnumerableExtensions" Version="1.34.1" />
                    
Directory.Packages.props
<PackageReference Include="budul.EnumerableExtensions" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add budul.EnumerableExtensions --version 1.34.1
                    
#r "nuget: budul.EnumerableExtensions, 1.34.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package budul.EnumerableExtensions@1.34.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=budul.EnumerableExtensions&version=1.34.1
                    
Install as a Cake Addin
#tool nuget:?package=budul.EnumerableExtensions&version=1.34.1
                    
Install as a Cake Tool

EnumerableExtensions

A collection of extension methods for working with enumerable data in .NET, providing utilities for counting, merging, converting, and manipulating collections.

Installation

Install via NuGet:

dotnet add package budul.EnumerableExtensions

Or visit: https://www.nuget.org/packages/budul.EnumerableExtensions

Features

Counting & Aggregation

  • CountOrDefault<T>() - Returns count or 0 if empty
  • MaxOrDefault<T>() / MaxOrNull<T>() - Safe max operations
  • MinOrDefault<T>() / MinOrNull<T>() - Safe min operations

Merging

  • Merge() - Combines enumerable items into a delimited string with optional sorting and distinct filtering
  • Merge<T, TProp>() - Merges items by selecting a specific property

Conversion

  • ToArrayOrDefault() - Converts to array or returns null if empty
  • ToListOrDefault() - Converts to list or returns null if empty

Usage Example

using EnumerableExtensions;
var items = new[] { "c", "b", "a", "c" };

// Merge with sorting and distinct 
string result = items.Merge(); // "a,b,c"

// Merge without sorting 
string unsorted = items.Merge(preventSort: true); // "c,b,a,c"

// Safe counting 
int count = items.CountOrDefault(); // 4

Target Frameworks

  • .NET Standard 2.0 / 2.1
  • .NET 7 / 8

License

See LICENSE file for details.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.34.1 120 12/25/2025
1.34.0 120 12/24/2025
1.33.0 389 7/11/2023
1.32.0 272 5/10/2023
1.31.0 391 2/28/2023
1.30.0 531 8/24/2022
1.29.0 586 7/29/2022
1.28.0 539 7/28/2022
1.27.0 537 7/28/2022
1.26.0 549 7/27/2022
1.25.0 620 2/9/2022
1.24.1 599 2/3/2022
1.24.0 566 2/1/2022
1.23.0 466 10/26/2021
1.22.0 489 10/8/2021
1.21.2 475 9/28/2021
1.21.1 460 8/25/2021
1.21.0 458 8/17/2021
1.20.0 482 5/20/2021
1.19.0 486 5/2/2021
1.18.0 483 4/29/2021
1.17.2 479 4/29/2021
1.17.1 500 4/29/2021
1.17.0 522 4/29/2021
1.16.0 530 1/22/2021
1.15.0 607 11/23/2020
1.14.0 568 11/5/2020
1.13.0 591 10/16/2020
1.12.0 594 10/16/2020
1.11.0 651 10/15/2020
1.10.0 580 10/12/2020
1.9.0 624 10/11/2020
1.8.0 616 6/9/2020
1.7.0 689 6/4/2020
1.6.0 665 5/28/2020
1.5.0 606 5/27/2020
1.4.0 624 5/14/2020
1.3.0 634 5/10/2020
1.2.1 653 5/6/2020
1.2.0 670 5/5/2020
1.1.0 635 5/5/2020
1.0.0 643 5/5/2020