Soenneker.Extensions.Enumerable 3.0.321

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.321                
NuGet\Install-Package Soenneker.Extensions.Enumerable -Version 3.0.321                
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.321" />                
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.321                
#r "nuget: Soenneker.Extensions.Enumerable, 3.0.321"                
#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.321

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

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 (8)

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.398 0 1/26/2025
3.0.397 0 1/26/2025
3.0.396 0 1/26/2025
3.0.395 0 1/25/2025
3.0.394 0 1/25/2025
3.0.393 119 1/25/2025
3.0.392 78 1/25/2025
3.0.391 1,226 1/24/2025
3.0.390 5 1/24/2025
3.0.389 110 1/24/2025
3.0.388 860 1/24/2025
3.0.387 309 1/23/2025
3.0.386 430 1/23/2025
3.0.385 46 1/23/2025
3.0.384 3,829 1/22/2025
3.0.383 752 1/21/2025
3.0.382 233 1/21/2025
3.0.381 756 1/21/2025
3.0.380 743 1/21/2025
3.0.379 956 1/21/2025
3.0.378 762 1/21/2025
3.0.377 961 1/21/2025
3.0.376 38 1/21/2025
3.0.375 4,620 1/21/2025
3.0.374 1,358 1/21/2025
3.0.373 1,230 1/21/2025
3.0.372 2,031 1/21/2025
3.0.371 135 1/20/2025
3.0.370 5,804 1/20/2025
3.0.369 217 1/20/2025
3.0.368 1,328 1/20/2025
3.0.367 62 1/20/2025
3.0.366 1,249 1/20/2025
3.0.365 76 1/20/2025
3.0.364 3,962 1/19/2025
3.0.363 6,299 1/19/2025
3.0.362 6,376 1/19/2025
3.0.361 2,145 1/19/2025
3.0.360 597 1/19/2025
3.0.359 3,594 1/18/2025
3.0.358 104 1/18/2025
3.0.357 3,497 1/18/2025
3.0.356 238 1/18/2025
3.0.355 979 1/18/2025
3.0.354 6,338 1/17/2025
3.0.353 108 1/17/2025
3.0.352 8,231 1/16/2025
3.0.351 4,534 1/16/2025
3.0.350 814 1/16/2025
3.0.349 5,097 1/15/2025
3.0.348 4,370 1/15/2025
3.0.347 3,692 1/15/2025
3.0.346 3,853 1/15/2025
3.0.345 2,275 1/15/2025
3.0.344 3,025 1/15/2025
3.0.343 772 1/15/2025
3.0.342 2,398 1/14/2025
3.0.341 326 1/14/2025
3.0.340 70 1/14/2025
3.0.339 3,147 1/14/2025
3.0.338 598 1/14/2025
3.0.337 42 1/14/2025
3.0.336 540 1/14/2025
3.0.335 210 1/14/2025
3.0.334 5,158 1/13/2025
3.0.333 1,311 1/13/2025
3.0.332 2,648 1/13/2025
3.0.331 5,622 1/11/2025
3.0.330 2,245 1/11/2025
3.0.329 2,371 1/10/2025
3.0.328 4,936 1/10/2025
3.0.327 78 1/10/2025
3.0.326 410 1/10/2025
3.0.325 71 1/10/2025
3.0.324 76 1/10/2025
3.0.323 8,002 1/3/2025
3.0.322 930 1/3/2025
3.0.321 1,194 1/3/2025
3.0.320 381 1/3/2025
3.0.319 1,336 1/3/2025
3.0.318 3,098 1/2/2025
3.0.317 94 1/2/2025
3.0.316 2,106 1/2/2025
3.0.315 97 1/2/2025
3.0.314 2,865 1/2/2025
3.0.313 96 1/2/2025
3.0.312 9,496 1/1/2025
3.0.311 93 1/1/2025
3.0.310 144 12/31/2024
3.0.309 100 12/31/2024
3.0.308 3,400 12/31/2024
3.0.307 94 12/31/2024
3.0.306 171 12/31/2024
3.0.305 652 12/31/2024
3.0.304 100 12/31/2024
3.0.303 1,052 12/31/2024
3.0.302 365 12/31/2024
3.0.301 6,336 12/31/2024
3.0.300 4,452 12/31/2024
3.0.299 1,013 12/31/2024
3.0.298 3,253 12/31/2024
3.0.297 2,466 12/31/2024
3.0.296 90 12/31/2024
3.0.295 93 12/31/2024
3.0.294 11,441 12/28/2024
3.0.293 1,929 12/28/2024
3.0.292 1,091 12/28/2024
3.0.291 1,317 12/27/2024
3.0.290 8,447 12/24/2024
3.0.289 1,814 12/24/2024
3.0.288 1,767 12/24/2024
3.0.287 2,492 12/24/2024
3.0.286 2,669 12/24/2024
3.0.285 2,106 12/24/2024
3.0.284 1,734 12/24/2024
3.0.283 1,371 12/23/2024
3.0.282 2,914 12/23/2024
3.0.281 3,350 12/23/2024
3.0.280 1,309 12/23/2024
3.0.279 3,763 12/23/2024
3.0.278 278 12/23/2024
3.0.277 3,590 12/22/2024
3.0.276 5,716 12/22/2024
3.0.275 5,732 12/22/2024
3.0.274 7,765 12/21/2024
3.0.273 427 12/21/2024
3.0.272 3,801 12/21/2024
3.0.271 4,927 12/21/2024
3.0.270 1,047 12/21/2024
3.0.269 5,897 12/20/2024
3.0.268 11,545 12/18/2024
3.0.267 135 12/18/2024
3.0.266 7,532 12/17/2024
3.0.265 6,107 12/17/2024
3.0.264 353 12/16/2024
3.0.263 1,083 12/16/2024
3.0.262 8,124 12/10/2024
3.0.261 2,242 12/9/2024
3.0.260 3,677 12/9/2024
3.0.259 2,494 12/9/2024
3.0.258 6,991 12/6/2024
3.0.257 1,309 12/6/2024
3.0.256 2,283 12/6/2024
3.0.255 7,108 12/6/2024
3.0.254 187 12/6/2024
3.0.253 324 12/6/2024
3.0.252 987 12/6/2024
3.0.251 5,640 12/6/2024
3.0.250 112 12/6/2024
3.0.249 107 12/6/2024
3.0.248 4,468 12/5/2024
3.0.247 4,462 12/5/2024
3.0.246 3,412 12/5/2024
3.0.245 4,070 12/5/2024
3.0.244 578 12/5/2024
3.0.243 499 12/5/2024
3.0.242 5,166 12/4/2024
3.0.241 464 12/4/2024
3.0.240 1,114 12/4/2024
3.0.239 3,590 12/4/2024
3.0.238 3,780 12/3/2024
3.0.237 2,834 12/3/2024
3.0.236 3,597 12/3/2024
3.0.235 3,403 12/3/2024
3.0.234 4,695 12/2/2024
3.0.233 3,864 12/2/2024
3.0.232 2,368 12/2/2024
3.0.231 419 12/2/2024
3.0.230 4,282 12/1/2024
3.0.229 627 12/1/2024
3.0.228 3,131 12/1/2024
3.0.227 4,079 12/1/2024
3.0.226 4,282 11/29/2024
3.0.225 6,324 11/21/2024
3.0.224 6,174 11/20/2024
3.0.223 657 11/20/2024
3.0.222 1,137 11/20/2024
3.0.221 561 11/19/2024
3.0.220 5,661 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,565 11/14/2024
3.0.214 1,160 11/14/2024
3.0.213 4,082 11/14/2024
3.0.212 966 11/14/2024
3.0.211 563 11/14/2024
3.0.210 4,322 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 11,740 11/13/2024
2.1.205 4,927 11/13/2024
2.1.204 12,097 11/9/2024
2.1.203 842 11/9/2024
2.1.202 2,154 11/9/2024
2.1.201 1,266 11/8/2024
2.1.200 1,058 11/8/2024
2.1.199 91 11/8/2024
2.1.198 1,894 11/8/2024
2.1.197 246 11/8/2024
2.1.196 4,613 11/8/2024
2.1.195 6,014 11/8/2024
2.1.194 13,215 11/1/2024
2.1.192 9,617 10/29/2024
2.1.191 10,363 10/28/2024
2.1.190 6,586 10/26/2024
2.1.189 9,561 10/22/2024
2.1.188 1,474 10/22/2024
2.1.187 1,053 10/22/2024
2.1.186 8,513 10/17/2024
2.1.185 6,192 10/15/2024
2.1.184 2,353 10/14/2024
2.1.183 6,857 10/11/2024
2.1.182 938 10/11/2024
2.1.181 549 10/11/2024
2.1.180 10,945 10/9/2024
2.1.179 905 10/8/2024
2.1.178 5,507 10/8/2024
2.1.177 838 10/8/2024
2.1.176 12,099 10/3/2024
2.1.175 3,719 10/3/2024
2.1.174 8,987 10/2/2024
2.1.173 2,704 10/2/2024
2.1.172 6,644 10/1/2024
2.1.171 1,778 10/1/2024
2.1.170 2,725 10/1/2024
2.1.169 7,619 9/29/2024
2.1.168 2,207 9/29/2024
2.1.167 1,613 9/29/2024
2.1.166 9,272 9/27/2024
2.1.165 5,263 9/27/2024
2.1.164 84 9/27/2024
2.1.163 285 9/27/2024
2.1.162 87 9/27/2024
2.1.161 7,902 9/26/2024
2.1.160 7,543 9/26/2024
2.1.159 6,942 9/26/2024
2.1.158 7,081 9/23/2024
2.1.157 3,277 9/23/2024
2.1.156 1,916 9/23/2024
2.1.155 2,013 9/23/2024
2.1.154 6,519 9/23/2024
2.1.153 719 9/23/2024
2.1.152 872 9/23/2024
2.1.151 81 9/23/2024
2.1.150 2,348 9/23/2024
2.1.149 11,796 9/17/2024
2.1.148 90 9/17/2024
2.1.147 411 9/17/2024
2.1.146 4,813 9/17/2024
2.1.145 4,163 9/17/2024
2.1.144 5,457 9/17/2024
2.1.143 98 9/17/2024
2.1.142 516 9/17/2024
2.1.141 1,213 9/17/2024
2.1.140 13,349 9/16/2024
2.1.139 7,506 9/12/2024
2.1.138 5,115 9/11/2024
2.1.137 3,070 9/11/2024
2.1.136 5,967 9/11/2024
2.1.135 4,892 9/11/2024
2.1.134 11,158 9/10/2024
2.1.133 2,337 9/10/2024
2.1.132 3,728 9/9/2024
2.1.131 4,099 9/9/2024
2.1.130 2,600 9/9/2024
2.1.129 1,234 9/9/2024
2.1.128 91 9/9/2024
2.1.127 100 9/9/2024
2.1.126 86 9/9/2024
2.1.125 16,786 9/6/2024
2.1.124 6,529 9/6/2024
2.1.123 3,369 9/5/2024
2.1.122 2,031 9/5/2024
2.1.121 4,110 9/5/2024
2.1.120 2,211 9/5/2024
2.1.119 86 9/5/2024
2.1.118 1,623 9/5/2024
2.1.117 5,886 9/5/2024
2.1.116 1,398 9/4/2024
2.1.115 12,064 9/3/2024
2.1.114 1,184 9/3/2024
2.1.113 4,924 9/3/2024
2.1.112 9,527 8/29/2024
2.1.111 6,728 8/26/2024
2.1.110 6,692 8/21/2024
2.1.109 3,812 8/21/2024
2.1.108 430 8/20/2024
2.1.107 4,724 8/20/2024
2.1.106 97 8/20/2024
2.1.105 4,797 8/20/2024
2.1.104 2,908 8/20/2024
2.1.103 9,047 8/15/2024
2.1.102 8,179 8/13/2024
2.1.101 7,820 8/6/2024
2.1.100 9,167 8/1/2024
2.1.99 555 8/1/2024
2.1.98 8,665 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,145 7/20/2024
2.1.92 8,183 7/14/2024
2.1.91 2,229 7/14/2024
2.1.90 6,799 7/10/2024
2.1.89 220 7/10/2024
2.1.88 2,151 7/10/2024
2.1.87 2,041 7/10/2024
2.1.86 213 7/10/2024
2.1.85 214 7/10/2024
2.1.83 2,113 7/10/2024
2.1.82 3,216 7/9/2024
2.1.80 829 7/9/2024
2.1.79 1,250 7/9/2024
2.1.78 7,694 7/9/2024
2.1.77 3,042 7/9/2024
2.1.76 8,184 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,573 7/7/2024
2.1.67 667 7/7/2024
2.1.66 1,309 7/7/2024
2.1.65 3,020 7/7/2024
2.1.64 2,688 7/7/2024
2.1.63 105 7/7/2024
2.1.62 3,593 7/5/2024
2.1.61 72,830 5/25/2024
2.1.60 104 5/25/2024
2.1.59 519 5/25/2024
2.1.58 13,946 5/22/2024
2.1.57 108 5/22/2024
2.1.56 11,452 5/17/2024
2.1.55 15,864 4/30/2024
2.1.54 15,820 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,966 4/12/2024
2.1.49 1,349 4/12/2024
2.1.48 115 4/12/2024
2.1.47 37,349 3/18/2024
2.1.46 8,734 3/13/2024
2.1.45 2,266 3/13/2024
2.1.44 60,938 2/21/2024
2.1.43 2,723 2/21/2024
2.1.42 109 2/21/2024
2.1.41 21,712 2/16/2024
2.1.40 631 2/16/2024
2.1.39 23,786 2/9/2024
2.1.38 18,833 2/6/2024
2.1.37 117 2/6/2024
2.1.36 62,574 1/15/2024
2.1.35 822 1/15/2024
2.1.34 26,052 1/5/2024
2.1.33 2,437 1/5/2024
2.1.32 13,324 12/27/2023
2.1.31 1,324 12/27/2023
2.1.30 1,083 12/27/2023
2.1.29 7,818 12/25/2023
2.1.28 1,373 12/25/2023
2.1.27 678 12/25/2023
2.1.26 10,486 12/23/2023
2.1.25 129 12/23/2023
2.1.24 807 12/23/2023
2.1.23 20,604 12/9/2023
2.1.22 1,335 12/9/2023
2.1.21 246 12/9/2023
2.1.20 1,907 12/9/2023
2.1.19 10,786 12/4/2023
2.1.18 820 12/4/2023
2.1.17 5,424 11/26/2023
2.1.16 5,387 11/23/2023
2.1.15 340 11/23/2023
2.1.14 947 11/23/2023
2.1.13 9,380 11/19/2023
2.1.12 136 11/19/2023
2.1.11 1,193 11/18/2023
2.1.10 3,400 11/18/2023
2.1.9 1,940 11/18/2023
2.1.8 3,656 11/17/2023
2.1.7 1,072 11/17/2023
2.1.6 1,698 11/17/2023
2.1.5 874 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,192 11/6/2023
1.0.44 2,230 11/3/2023
1.0.43 1,814 11/2/2023
1.0.42 1,878 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,147 9/19/2023
1.0.35 2,049 9/18/2023
1.0.34 130 9/18/2023
1.0.33 7,664 8/30/2023
1.0.32 2,680 8/29/2023
1.0.31 4,151 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,022 8/7/2023
1.0.26 166 8/7/2023
1.0.25 7,976 7/10/2023
1.0.24 10,313 7/7/2023
1.0.23 161 7/7/2023
1.0.22 9,293 6/28/2023
1.0.21 44,302 5/24/2023
1.0.20 1,126 5/24/2023
1.0.19 404 5/23/2023
1.0.18 185 5/31/2023
1.0.17 2,743 5/23/2023
1.0.16 2,934 5/22/2023
1.0.15 5,954 5/17/2023
1.0.14 173 5/17/2023
1.0.13 5,580 4/28/2023
1.0.12 2,206 4/24/2023
1.0.11 959 4/21/2023
1.0.10 4,478 4/12/2023
1.0.9 1,063 4/11/2023
1.0.8 2,022 4/3/2023
1.0.7 227 4/3/2023
1.0.6 360 4/1/2023
1.0.5 2,033 3/23/2023
1.0.3 539 2/28/2023
1.0.2 444 2/16/2023