Soenneker.Extensions.Enumerable 3.0.463

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Extensions.Enumerable --version 3.0.463                
NuGet\Install-Package Soenneker.Extensions.Enumerable -Version 3.0.463                
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="Soenneker.Extensions.Enumerable" Version="3.0.463" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Soenneker.Extensions.Enumerable --version 3.0.463                
#r "nuget: Soenneker.Extensions.Enumerable, 3.0.463"                
#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.
// Install Soenneker.Extensions.Enumerable as a Cake Addin
#addin nuget:?package=Soenneker.Extensions.Enumerable&version=3.0.463

// Install Soenneker.Extensions.Enumerable as a Cake Tool
#tool nuget:?package=Soenneker.Extensions.Enumerable&version=3.0.463                

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

alternate text is missing from this package README image Soenneker.Extensions.Enumerable

A collection of helpful enumerable extension methods

Installation

dotnet add package Soenneker.Extensions.Enumerable

Usage

IEnumerable should have IsNullOrEmpty() too

var populatedList = new List<string>{"foo", "bar", "foo"};

populatedList.IsNullOrEmpty() // false

populatedList.Populated() // true
populatedList.None() // false

One call checking for null and contains any elements

List<string>? nullList = null;

nullList.IsNullOrEmpty() // true
nullList.Populated() // false

Duplicate handling

var containsDuplicates = populatedList.ContainsDuplicates(); // true

var deduped = populatedList.RemoveDuplicates(); // {"foo", "bar"}

Recursive flattening

public class Node 
{
    public string Name {get; set;}
    public List<Node> Children {get; set;}
}

void Example()
{
    var node = new Node(){ Name = "Node1" };
    node.Children = new List()
    {
        new Node() 
        {
            Name = "Node2"
        }
    }

    List<Node>? children = node.Children.ToFlattenedFromRecursive(c => c.Children);

    // Results in flattened List:
    // { Node1, Node2 }
}
Product Compatible and additional computed target framework versions.
.NET 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (9)

Showing the top 5 NuGet packages that depend on Soenneker.Extensions.Enumerable:

Package Downloads
Soenneker.Utils.SingletonDictionary

An externally initializing singleton dictionary that uses double-check asynchronous locking, with optional async and sync disposal

Soenneker.Extensions.Enumerable.String

A collection of helpful enumerable string extension methods

Soenneker.Utils.String

A utility library for useful String operations

Soenneker.Utils.Process

A utility library implementing useful process operations

Soenneker.Swashbuckle.Authentication

A middleware implementing basic authentication and RBAC support for Swashbuckle (Swagger)

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.0.475 666 3/2/2025
3.0.474 1,225 3/2/2025
3.0.473 302 3/2/2025
3.0.472 2,363 3/2/2025
3.0.471 2,024 3/1/2025
3.0.470 108 3/1/2025
3.0.469 1,924 3/1/2025
3.0.468 37 3/1/2025
3.0.467 736 3/1/2025
3.0.466 6,491 2/26/2025
3.0.465 703 2/25/2025
3.0.464 2,100 2/25/2025
3.0.463 1,457 2/25/2025
3.0.462 814 2/25/2025
3.0.461 9,915 2/23/2025
3.0.460 2,057 2/22/2025
3.0.459 9,242 2/22/2025
3.0.458 2,658 2/22/2025
3.0.457 3,223 2/22/2025
3.0.456 503 2/21/2025
3.0.455 5,209 2/21/2025
3.0.454 11,509 2/19/2025
3.0.453 4,815 2/18/2025
3.0.452 1,030 2/18/2025
3.0.451 402 2/18/2025
3.0.450 5,683 2/18/2025
3.0.449 84 2/18/2025
3.0.448 12,136 2/14/2025
3.0.447 1,354 2/14/2025
3.0.446 3,809 2/13/2025
3.0.445 4,666 2/13/2025
3.0.444 5,086 2/12/2025
3.0.443 1,657 2/12/2025
3.0.442 716 2/12/2025
3.0.441 2,073 2/12/2025
3.0.440 714 2/12/2025
3.0.439 479 2/11/2025
3.0.438 7,823 2/11/2025
3.0.437 2,630 2/11/2025
3.0.436 420 2/11/2025
3.0.435 2,564 2/10/2025
3.0.434 91 2/10/2025
3.0.433 1,726 2/10/2025
3.0.432 95 2/10/2025
3.0.431 13,733 2/9/2025
3.0.430 7,944 2/9/2025
3.0.429 333 2/9/2025
3.0.428 250 2/8/2025
3.0.427 195 2/8/2025
3.0.426 248 2/8/2025
3.0.425 8,263 2/8/2025
3.0.424 2,693 2/7/2025
3.0.423 1,896 2/7/2025
3.0.422 2,435 2/7/2025
3.0.421 81 2/7/2025
3.0.420 385 2/7/2025
3.0.419 89 2/7/2025
3.0.418 1,946 2/7/2025
3.0.417 87 2/7/2025
3.0.416 14,534 2/7/2025
3.0.415 7,119 2/5/2025
3.0.414 800 2/5/2025
3.0.413 1,143 2/5/2025
3.0.412 233 2/5/2025
3.0.411 2,483 2/5/2025
3.0.410 5,327 2/5/2025
3.0.409 11,822 1/28/2025
3.0.408 820 1/28/2025
3.0.407 243 1/28/2025
3.0.406 2,617 1/28/2025
3.0.405 5,478 1/27/2025
3.0.404 1,536 1/27/2025
3.0.403 77 1/27/2025
3.0.402 5,339 1/27/2025
3.0.401 76 1/27/2025
3.0.400 6,111 1/26/2025
3.0.399 1,272 1/26/2025
3.0.398 961 1/26/2025
3.0.397 518 1/26/2025
3.0.396 236 1/26/2025
3.0.395 2,712 1/25/2025
3.0.394 5,864 1/25/2025
3.0.393 4,271 1/25/2025
3.0.392 419 1/25/2025
3.0.391 10,750 1/24/2025
3.0.390 1,954 1/24/2025
3.0.389 3,462 1/24/2025
3.0.388 4,057 1/24/2025
3.0.387 917 1/23/2025
3.0.386 1,136 1/23/2025
3.0.385 127 1/23/2025
3.0.384 9,565 1/22/2025
3.0.383 1,217 1/21/2025
3.0.382 356 1/21/2025
3.0.381 1,175 1/21/2025
3.0.380 1,141 1/21/2025
3.0.379 1,319 1/21/2025
3.0.378 1,001 1/21/2025
3.0.377 1,338 1/21/2025
3.0.376 89 1/21/2025
3.0.375 6,163 1/21/2025
3.0.374 1,733 1/21/2025
3.0.373 1,488 1/21/2025
3.0.372 2,622 1/21/2025
3.0.371 171 1/20/2025
3.0.370 6,927 1/20/2025
3.0.369 240 1/20/2025
3.0.368 1,423 1/20/2025
3.0.367 86 1/20/2025
3.0.366 1,353 1/20/2025
3.0.365 97 1/20/2025
3.0.364 4,224 1/19/2025
3.0.363 6,602 1/19/2025
3.0.362 6,401 1/19/2025
3.0.361 2,163 1/19/2025
3.0.360 613 1/19/2025
3.0.359 3,613 1/18/2025
3.0.358 122 1/18/2025
3.0.357 3,520 1/18/2025
3.0.356 256 1/18/2025
3.0.355 998 1/18/2025
3.0.354 6,362 1/17/2025
3.0.353 120 1/17/2025
3.0.352 8,266 1/16/2025
3.0.351 4,547 1/16/2025
3.0.350 826 1/16/2025
3.0.349 5,116 1/15/2025
3.0.348 4,382 1/15/2025
3.0.347 3,709 1/15/2025
3.0.346 3,904 1/15/2025
3.0.345 2,284 1/15/2025
3.0.344 3,034 1/15/2025
3.0.343 784 1/15/2025
3.0.342 2,433 1/14/2025
3.0.341 399 1/14/2025
3.0.340 111 1/14/2025
3.0.339 3,453 1/14/2025
3.0.338 928 1/14/2025
3.0.337 69 1/14/2025
3.0.336 1,158 1/14/2025
3.0.335 335 1/14/2025
3.0.334 7,086 1/13/2025
3.0.333 1,564 1/13/2025
3.0.332 2,989 1/13/2025
3.0.331 6,057 1/11/2025
3.0.330 2,501 1/11/2025
3.0.329 2,763 1/10/2025
3.0.328 5,549 1/10/2025
3.0.327 99 1/10/2025
3.0.326 488 1/10/2025
3.0.325 91 1/10/2025
3.0.324 97 1/10/2025
3.0.323 8,942 1/3/2025
3.0.322 1,010 1/3/2025
3.0.321 1,293 1/3/2025
3.0.320 391 1/3/2025
3.0.319 1,457 1/3/2025
3.0.318 3,288 1/2/2025
3.0.317 103 1/2/2025
3.0.316 2,255 1/2/2025
3.0.315 106 1/2/2025
3.0.314 3,025 1/2/2025
3.0.313 107 1/2/2025
3.0.312 9,839 1/1/2025
3.0.311 102 1/1/2025
3.0.310 153 12/31/2024
3.0.309 107 12/31/2024
3.0.308 3,549 12/31/2024
3.0.307 103 12/31/2024
3.0.306 180 12/31/2024
3.0.305 668 12/31/2024
3.0.304 107 12/31/2024
3.0.303 1,061 12/31/2024
3.0.302 378 12/31/2024
3.0.301 6,391 12/31/2024
3.0.300 4,508 12/31/2024
3.0.299 1,023 12/31/2024
3.0.298 3,263 12/31/2024
3.0.297 2,478 12/31/2024
3.0.296 100 12/31/2024
3.0.295 102 12/31/2024
3.0.294 11,560 12/28/2024
3.0.293 1,936 12/28/2024
3.0.292 1,100 12/28/2024
3.0.291 1,325 12/27/2024
3.0.290 8,459 12/24/2024
3.0.289 1,823 12/24/2024
3.0.288 1,774 12/24/2024
3.0.287 2,501 12/24/2024
3.0.286 2,677 12/24/2024
3.0.285 2,115 12/24/2024
3.0.284 1,743 12/24/2024
3.0.283 1,380 12/23/2024
3.0.282 2,923 12/23/2024
3.0.281 3,359 12/23/2024
3.0.280 1,318 12/23/2024
3.0.279 3,775 12/23/2024
3.0.278 287 12/23/2024
3.0.277 3,603 12/22/2024
3.0.276 5,725 12/22/2024
3.0.275 5,742 12/22/2024
3.0.274 7,778 12/21/2024
3.0.273 442 12/21/2024
3.0.272 3,810 12/21/2024
3.0.271 4,936 12/21/2024
3.0.270 1,056 12/21/2024
3.0.269 5,904 12/20/2024
3.0.268 11,563 12/18/2024
3.0.267 144 12/18/2024
3.0.266 7,547 12/17/2024
3.0.265 6,116 12/17/2024
3.0.264 360 12/16/2024
3.0.263 1,096 12/16/2024
3.0.262 8,136 12/10/2024
3.0.261 2,251 12/9/2024
3.0.260 3,686 12/9/2024
3.0.259 2,503 12/9/2024
3.0.258 7,000 12/6/2024
3.0.257 1,318 12/6/2024
3.0.256 2,294 12/6/2024
3.0.255 7,122 12/6/2024
3.0.254 194 12/6/2024
3.0.253 331 12/6/2024
3.0.252 994 12/6/2024
3.0.251 5,650 12/6/2024
3.0.250 119 12/6/2024
3.0.249 114 12/6/2024
3.0.248 4,479 12/5/2024
3.0.247 4,477 12/5/2024
3.0.246 3,416 12/5/2024
3.0.245 4,076 12/5/2024
3.0.244 582 12/5/2024
3.0.243 503 12/5/2024
3.0.242 5,170 12/4/2024
3.0.241 468 12/4/2024
3.0.240 1,118 12/4/2024
3.0.239 3,597 12/4/2024
3.0.238 3,791 12/3/2024
3.0.237 2,843 12/3/2024
3.0.236 3,610 12/3/2024
3.0.235 3,407 12/3/2024
3.0.234 4,706 12/2/2024
3.0.233 3,868 12/2/2024
3.0.232 2,372 12/2/2024
3.0.231 423 12/2/2024
3.0.230 4,288 12/1/2024
3.0.229 689 12/1/2024
3.0.228 3,137 12/1/2024
3.0.227 4,079 12/1/2024
3.0.226 4,285 11/29/2024
3.0.225 6,848 11/21/2024
3.0.224 6,189 11/20/2024
3.0.223 658 11/20/2024
3.0.222 1,137 11/20/2024
3.0.221 561 11/19/2024
3.0.220 5,668 11/19/2024
3.0.219 2,309 11/19/2024
3.0.218 88 11/19/2024
3.0.217 3,816 11/19/2024
3.0.216 78 11/19/2024
3.0.215 10,567 11/14/2024
3.0.214 1,162 11/14/2024
3.0.213 4,088 11/14/2024
3.0.212 966 11/14/2024
3.0.211 563 11/14/2024
3.0.210 4,326 11/14/2024
3.0.209 95 11/14/2024
3.0.208 3,432 11/14/2024
3.0.207 187 11/14/2024
2.1.206 12,033 11/13/2024
2.1.205 4,945 11/13/2024
2.1.204 12,105 11/9/2024
2.1.203 842 11/9/2024
2.1.202 2,155 11/9/2024
2.1.201 1,266 11/8/2024
2.1.200 1,065 11/8/2024
2.1.199 92 11/8/2024
2.1.198 1,894 11/8/2024
2.1.197 246 11/8/2024
2.1.196 4,619 11/8/2024
2.1.195 6,015 11/8/2024
2.1.194 13,260 11/1/2024
2.1.192 9,633 10/29/2024
2.1.191 10,366 10/28/2024
2.1.190 6,587 10/26/2024
2.1.189 10,146 10/22/2024
2.1.188 1,474 10/22/2024
2.1.187 1,053 10/22/2024
2.1.186 8,526 10/17/2024
2.1.185 6,198 10/15/2024
2.1.184 2,353 10/14/2024
2.1.183 6,860 10/11/2024
2.1.182 938 10/11/2024
2.1.181 550 10/11/2024
2.1.180 10,969 10/9/2024
2.1.179 905 10/8/2024
2.1.178 5,513 10/8/2024
2.1.177 839 10/8/2024
2.1.176 12,118 10/3/2024
2.1.175 3,725 10/3/2024
2.1.174 8,998 10/2/2024
2.1.173 2,710 10/2/2024
2.1.172 6,644 10/1/2024
2.1.171 1,778 10/1/2024
2.1.170 2,731 10/1/2024
2.1.169 7,659 9/29/2024
2.1.168 2,208 9/29/2024
2.1.167 1,614 9/29/2024
2.1.166 9,308 9/27/2024
2.1.165 5,264 9/27/2024
2.1.164 87 9/27/2024
2.1.163 288 9/27/2024
2.1.162 89 9/27/2024
2.1.161 7,910 9/26/2024
2.1.160 7,559 9/26/2024
2.1.159 6,949 9/26/2024
2.1.158 7,139 9/23/2024
2.1.157 3,279 9/23/2024
2.1.156 1,923 9/23/2024
2.1.155 2,020 9/23/2024
2.1.154 6,534 9/23/2024
2.1.153 721 9/23/2024
2.1.152 874 9/23/2024
2.1.151 83 9/23/2024
2.1.150 2,350 9/23/2024
2.1.149 11,823 9/17/2024
2.1.148 92 9/17/2024
2.1.147 413 9/17/2024
2.1.146 4,825 9/17/2024
2.1.145 4,175 9/17/2024
2.1.144 5,470 9/17/2024
2.1.143 99 9/17/2024
2.1.142 517 9/17/2024
2.1.141 1,224 9/17/2024
2.1.140 13,369 9/16/2024
2.1.139 7,537 9/12/2024
2.1.138 5,121 9/11/2024
2.1.137 3,071 9/11/2024
2.1.136 5,973 9/11/2024
2.1.135 4,905 9/11/2024
2.1.134 11,170 9/10/2024
2.1.133 2,339 9/10/2024
2.1.132 3,729 9/9/2024
2.1.131 4,105 9/9/2024
2.1.130 2,606 9/9/2024
2.1.129 1,235 9/9/2024
2.1.128 92 9/9/2024
2.1.127 101 9/9/2024
2.1.126 87 9/9/2024
2.1.125 16,806 9/6/2024
2.1.124 6,542 9/6/2024
2.1.123 3,380 9/5/2024
2.1.122 2,031 9/5/2024
2.1.121 4,118 9/5/2024
2.1.120 2,213 9/5/2024
2.1.119 86 9/5/2024
2.1.118 1,624 9/5/2024
2.1.117 5,886 9/5/2024
2.1.116 1,398 9/4/2024
2.1.115 12,085 9/3/2024
2.1.114 1,195 9/3/2024
2.1.113 4,936 9/3/2024
2.1.112 9,562 8/29/2024
2.1.111 6,749 8/26/2024
2.1.110 6,702 8/21/2024
2.1.109 3,812 8/21/2024
2.1.108 432 8/20/2024
2.1.107 4,726 8/20/2024
2.1.106 97 8/20/2024
2.1.105 4,807 8/20/2024
2.1.104 2,919 8/20/2024
2.1.103 9,060 8/15/2024
2.1.102 8,198 8/13/2024
2.1.101 7,855 8/6/2024
2.1.100 9,186 8/1/2024
2.1.99 555 8/1/2024
2.1.98 8,675 7/25/2024
2.1.97 1,052 7/25/2024
2.1.96 972 7/25/2024
2.1.95 631 7/24/2024
2.1.94 204 7/24/2024
2.1.93 9,370 7/20/2024
2.1.92 8,206 7/14/2024
2.1.91 2,233 7/14/2024
2.1.90 6,818 7/10/2024
2.1.89 222 7/10/2024
2.1.88 2,156 7/10/2024
2.1.87 2,042 7/10/2024
2.1.86 215 7/10/2024
2.1.85 218 7/10/2024
2.1.83 2,120 7/10/2024
2.1.82 3,227 7/9/2024
2.1.80 833 7/9/2024
2.1.79 1,250 7/9/2024
2.1.78 7,712 7/9/2024
2.1.77 3,048 7/9/2024
2.1.76 9,528 7/9/2024
2.1.75 107 7/9/2024
2.1.74 124 7/8/2024
2.1.73 106 7/8/2024
2.1.72 2,503 7/8/2024
2.1.71 91 7/8/2024
2.1.70 6,920 7/8/2024
2.1.69 2,266 7/7/2024
2.1.68 2,574 7/7/2024
2.1.67 670 7/7/2024
2.1.66 1,318 7/7/2024
2.1.65 3,037 7/7/2024
2.1.64 2,698 7/7/2024
2.1.63 105 7/7/2024
2.1.62 3,615 7/5/2024
2.1.61 73,037 5/25/2024
2.1.60 104 5/25/2024
2.1.59 519 5/25/2024
2.1.58 13,951 5/22/2024
2.1.57 108 5/22/2024
2.1.56 11,464 5/17/2024
2.1.55 15,883 4/30/2024
2.1.54 15,869 4/28/2024
2.1.53 109 4/28/2024
2.1.52 668 4/27/2024
2.1.51 99 4/27/2024
2.1.50 24,999 4/12/2024
2.1.49 1,349 4/12/2024
2.1.48 115 4/12/2024
2.1.47 38,066 3/18/2024
2.1.46 8,746 3/13/2024
2.1.45 2,267 3/13/2024
2.1.44 61,045 2/21/2024
2.1.43 2,729 2/21/2024
2.1.42 109 2/21/2024
2.1.41 21,767 2/16/2024
2.1.40 636 2/16/2024
2.1.39 23,822 2/9/2024
2.1.38 18,877 2/6/2024
2.1.37 117 2/6/2024
2.1.36 62,674 1/15/2024
2.1.35 822 1/15/2024
2.1.34 26,085 1/5/2024
2.1.33 2,442 1/5/2024
2.1.32 13,339 12/27/2023
2.1.31 1,329 12/27/2023
2.1.30 1,083 12/27/2023
2.1.29 7,824 12/25/2023
2.1.28 1,379 12/25/2023
2.1.27 678 12/25/2023
2.1.26 10,527 12/23/2023
2.1.25 129 12/23/2023
2.1.24 807 12/23/2023
2.1.23 20,691 12/9/2023
2.1.22 1,335 12/9/2023
2.1.21 246 12/9/2023
2.1.20 1,917 12/9/2023
2.1.19 10,831 12/4/2023
2.1.18 820 12/4/2023
2.1.17 5,434 11/26/2023
2.1.16 5,393 11/23/2023
2.1.15 340 11/23/2023
2.1.14 954 11/23/2023
2.1.13 9,395 11/19/2023
2.1.12 136 11/19/2023
2.1.11 1,193 11/18/2023
2.1.10 3,406 11/18/2023
2.1.9 1,940 11/18/2023
2.1.8 3,670 11/17/2023
2.1.7 1,072 11/17/2023
2.1.6 1,705 11/17/2023
2.1.5 875 11/17/2023
2.1.4 638 11/16/2023
2.1.3 182 11/16/2023
2.0.52 1,247 11/15/2023
2.0.51 2,133 11/15/2023
2.0.2 133 11/16/2023
2.0.1 139 11/16/2023
1.0.50 4,109 11/11/2023
1.0.49 121 11/11/2023
1.0.48 106 11/11/2023
1.0.47 1,337 11/9/2023
1.0.46 128 11/9/2023
1.0.45 5,207 11/6/2023
1.0.44 2,230 11/3/2023
1.0.43 1,814 11/2/2023
1.0.42 1,890 11/1/2023
1.0.41 7,485 10/18/2023
1.0.40 3,001 10/17/2023
1.0.39 1,240 10/16/2023
1.0.38 2,658 10/13/2023
1.0.37 156 10/13/2023
1.0.36 6,163 9/19/2023
1.0.35 2,056 9/18/2023
1.0.34 130 9/18/2023
1.0.33 7,664 8/30/2023
1.0.32 2,687 8/29/2023
1.0.31 4,154 8/24/2023
1.0.30 142 8/24/2023
1.0.29 4,331 8/17/2023
1.0.28 164 8/17/2023
1.0.27 8,029 8/7/2023
1.0.26 166 8/7/2023
1.0.25 7,976 7/10/2023
1.0.24 10,341 7/7/2023
1.0.23 161 7/7/2023
1.0.22 9,307 6/28/2023
1.0.21 44,333 5/24/2023
1.0.20 1,129 5/24/2023
1.0.19 407 5/23/2023
1.0.18 188 5/31/2023
1.0.17 2,746 5/23/2023
1.0.16 2,937 5/22/2023
1.0.15 5,958 5/17/2023
1.0.14 177 5/17/2023
1.0.13 5,591 4/28/2023
1.0.12 2,210 4/24/2023
1.0.11 963 4/21/2023
1.0.10 4,482 4/12/2023
1.0.9 1,067 4/11/2023
1.0.8 2,026 4/3/2023
1.0.7 231 4/3/2023
1.0.6 364 4/1/2023
1.0.5 2,037 3/23/2023
1.0.3 543 2/28/2023
1.0.2 449 2/16/2023