Soenneker.Extensions.Enumerable 3.0.492

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.492
                    
NuGet\Install-Package Soenneker.Extensions.Enumerable -Version 3.0.492
                    
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.492" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Extensions.Enumerable" Version="3.0.492" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Extensions.Enumerable" />
                    
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 Soenneker.Extensions.Enumerable --version 3.0.492
                    
#r "nuget: Soenneker.Extensions.Enumerable, 3.0.492"
                    
#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.
#addin nuget:?package=Soenneker.Extensions.Enumerable&version=3.0.492
                    
Install Soenneker.Extensions.Enumerable as a Cake Addin
#tool nuget:?package=Soenneker.Extensions.Enumerable&version=3.0.492
                    
Install Soenneker.Extensions.Enumerable as a Cake Tool

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

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.502 1,933 2 days ago
3.0.501 3,300 3 days ago
3.0.500 4,889 3 days ago
3.0.499 2,394 3 days ago
3.0.498 5,627 3 days ago
3.0.497 7,129 5 days ago
3.0.496 1,989 5 days ago
3.0.495 6,237 8 days ago
3.0.494 4,332 9 days ago
3.0.493 1,716 9 days ago
3.0.492 10,444 14 days ago
3.0.491 9,459 16 days ago
3.0.490 4,891 17 days ago
3.0.489 7,315 20 days ago
3.0.488 2,243 20 days ago
3.0.487 8,314 23 days ago
3.0.486 3,109 23 days ago
3.0.485 485 23 days ago
3.0.484 3,104 23 days ago
3.0.483 363 23 days ago
3.0.482 1,255 23 days ago
3.0.481 2,317 23 days ago
3.0.480 3,464 23 days ago
3.0.479 3,167 24 days ago
3.0.478 1,986 24 days ago
3.0.477 12,268 a month ago
3.0.476 3,640 a month ago
3.0.475 7,344 a month ago
3.0.474 2,681 a month ago
3.0.473 648 a month ago
3.0.472 5,127 a month ago
3.0.471 4,695 a month ago
3.0.470 209 a month ago
3.0.469 4,447 a month ago
3.0.468 79 a month ago
3.0.467 1,626 a month ago
3.0.466 12,682 a month ago
3.0.465 1,095 a month ago
3.0.464 3,066 a month ago
3.0.463 1,990 a month ago
3.0.462 1,002 a month ago
3.0.461 11,610 a month ago
3.0.460 2,064 a month ago
3.0.459 9,245 a month ago
3.0.458 2,661 a month ago
3.0.457 3,230 a month ago
3.0.456 505 a month ago
3.0.455 5,211 a month ago
3.0.454 11,514 2 months ago
3.0.453 4,816 2 months ago
3.0.452 1,031 2 months ago
3.0.451 404 2 months ago
3.0.450 5,684 2 months ago
3.0.449 85 2 months ago
3.0.448 12,151 2 months ago
3.0.447 1,357 2 months ago
3.0.446 3,810 2 months ago
3.0.445 4,671 2 months ago
3.0.444 5,167 2 months ago
3.0.443 1,658 2 months ago
3.0.442 717 2 months ago
3.0.441 2,077 2 months ago
3.0.440 716 2 months ago
3.0.439 481 2 months ago
3.0.438 7,825 2 months ago
3.0.437 2,635 2 months ago
3.0.436 425 2 months ago
3.0.435 2,571 2 months ago
3.0.434 95 2 months ago
3.0.433 1,729 2 months ago
3.0.432 96 2 months ago
3.0.431 13,743 2 months ago
3.0.430 7,945 2 months ago
3.0.429 338 2 months ago
3.0.428 251 2 months ago
3.0.427 196 2 months ago
3.0.426 252 2 months ago
3.0.425 8,266 2 months ago
3.0.424 2,695 2 months ago
3.0.423 1,903 2 months ago
3.0.422 2,436 2 months ago
3.0.421 83 2 months ago
3.0.420 386 2 months ago
3.0.419 92 2 months ago
3.0.418 1,952 2 months ago
3.0.417 89 2 months ago
3.0.416 14,546 2 months ago
3.0.415 7,127 2 months ago
3.0.414 817 2 months ago
3.0.413 1,144 2 months ago
3.0.412 234 2 months ago
3.0.411 2,502 2 months ago
3.0.410 5,334 2 months ago
3.0.409 12,255 2 months ago
3.0.408 821 2 months ago
3.0.407 244 2 months ago
3.0.406 2,620 2 months ago
3.0.405 5,481 2 months ago
3.0.404 1,540 2 months ago
3.0.403 79 2 months ago
3.0.402 5,341 2 months ago
3.0.401 80 2 months ago
3.0.400 6,119 2 months ago
3.0.399 1,275 2 months ago
3.0.398 965 2 months ago
3.0.397 520 2 months ago
3.0.396 237 2 months ago
3.0.395 2,713 2 months ago
3.0.394 5,872 2 months ago
3.0.393 4,272 2 months ago
3.0.392 422 2 months ago
3.0.391 10,754 2 months ago
3.0.390 1,960 2 months ago
3.0.389 3,467 2 months ago
3.0.388 4,058 2 months ago
3.0.387 918 2 months ago
3.0.386 1,139 2 months ago
3.0.385 130 2 months ago
3.0.384 9,569 2 months ago
3.0.383 1,220 2 months ago
3.0.382 359 2 months ago
3.0.381 1,178 2 months ago
3.0.380 1,142 2 months ago
3.0.379 1,320 2 months ago
3.0.378 1,006 2 months ago
3.0.377 1,341 2 months ago
3.0.376 92 2 months ago
3.0.375 6,166 2 months ago
3.0.374 1,736 2 months ago
3.0.373 1,491 2 months ago
3.0.372 2,625 2 months ago
3.0.371 174 2 months ago
3.0.370 6,932 2 months ago
3.0.369 240 2 months ago
3.0.368 1,425 2 months ago
3.0.367 86 2 months ago
3.0.366 1,355 2 months ago
3.0.365 99 2 months ago
3.0.364 4,228 3 months ago
3.0.363 6,606 3 months ago
3.0.362 6,403 3 months ago
3.0.361 2,167 3 months ago
3.0.360 614 3 months ago
3.0.359 3,617 3 months ago
3.0.358 124 3 months ago
3.0.357 3,522 3 months ago
3.0.356 258 3 months ago
3.0.355 1,001 3 months ago
3.0.354 6,366 3 months ago
3.0.353 124 3 months ago
3.0.352 8,268 3 months ago
3.0.351 4,549 3 months ago
3.0.350 828 3 months ago
3.0.349 5,118 3 months ago
3.0.348 4,384 3 months ago
3.0.347 3,711 3 months ago
3.0.346 3,906 3 months ago
3.0.345 2,286 3 months ago
3.0.344 3,036 3 months ago
3.0.343 788 3 months ago
3.0.342 2,438 3 months ago
3.0.341 404 3 months ago
3.0.340 117 3 months ago
3.0.339 3,456 3 months ago
3.0.338 931 3 months ago
3.0.337 72 3 months ago
3.0.336 1,162 3 months ago
3.0.335 340 3 months ago
3.0.334 7,092 3 months ago
3.0.333 1,566 3 months ago
3.0.332 2,991 3 months ago
3.0.331 6,058 3 months ago
3.0.330 2,504 3 months ago
3.0.329 2,765 3 months ago
3.0.328 5,555 3 months ago
3.0.327 101 3 months ago
3.0.326 495 3 months ago
3.0.325 93 3 months ago
3.0.324 100 3 months ago
3.0.323 8,957 3 months ago
3.0.322 1,012 3 months ago
3.0.321 1,297 3 months ago
3.0.320 395 3 months ago
3.0.319 1,463 3 months ago
3.0.318 3,290 3 months ago
3.0.317 107 3 months ago
3.0.316 2,260 3 months ago
3.0.315 110 3 months ago
3.0.314 3,027 3 months ago
3.0.313 109 3 months ago
3.0.312 9,848 3 months ago
3.0.311 106 3 months ago
3.0.310 155 3 months ago
3.0.309 111 3 months ago
3.0.308 3,552 3 months ago
3.0.307 106 3 months ago
3.0.306 182 3 months ago
3.0.305 676 3 months ago
3.0.304 111 3 months ago
3.0.303 1,066 3 months ago
3.0.302 380 3 months ago
3.0.301 6,402 3 months ago
3.0.300 4,512 3 months ago
3.0.299 1,025 3 months ago
3.0.298 3,266 3 months ago
3.0.297 2,481 3 months ago
3.0.296 103 3 months ago
3.0.295 105 3 months ago
3.0.294 11,567 3 months ago
3.0.293 1,940 3 months ago
3.0.292 1,102 3 months ago
3.0.291 1,327 3 months ago
3.0.290 8,463 3 months ago
3.0.289 1,826 3 months ago
3.0.288 1,779 3 months ago
3.0.287 2,503 3 months ago
3.0.286 2,686 3 months ago
3.0.285 2,122 3 months ago
3.0.284 1,746 3 months ago
3.0.283 1,383 3 months ago
3.0.282 2,931 3 months ago
3.0.281 3,361 3 months ago
3.0.280 1,320 3 months ago
3.0.279 3,779 3 months ago
3.0.278 289 3 months ago
3.0.277 3,608 3 months ago
3.0.276 5,727 3 months ago
3.0.275 5,747 3 months ago
3.0.274 7,780 3 months ago
3.0.273 445 3 months ago
3.0.272 3,812 3 months ago
3.0.271 4,938 3 months ago
3.0.270 1,059 3 months ago
3.0.269 5,908 3 months ago
3.0.268 11,566 4 months ago
3.0.267 147 4 months ago
3.0.266 7,564 4 months ago
3.0.265 6,124 4 months ago
3.0.264 365 4 months ago
3.0.263 1,105 4 months ago
3.0.262 8,143 4 months ago
3.0.261 2,257 4 months ago
3.0.260 3,690 4 months ago
3.0.259 2,505 4 months ago
3.0.258 7,009 4 months ago
3.0.257 1,320 4 months ago
3.0.256 2,299 4 months ago
3.0.255 7,126 4 months ago
3.0.254 197 4 months ago
3.0.253 332 4 months ago
3.0.252 996 4 months ago
3.0.251 5,654 4 months ago
3.0.250 121 4 months ago
3.0.249 116 4 months ago
3.0.248 4,484 4 months ago
3.0.247 4,479 4 months ago
3.0.246 3,424 4 months ago
3.0.245 4,079 4 months ago
3.0.244 584 4 months ago
3.0.243 506 4 months ago
3.0.242 5,175 4 months ago
3.0.241 470 4 months ago
3.0.240 1,120 4 months ago
3.0.239 3,599 4 months ago
3.0.238 3,794 4 months ago
3.0.237 2,846 4 months ago
3.0.236 3,615 4 months ago
3.0.235 3,410 4 months ago
3.0.234 4,715 4 months ago
3.0.233 3,871 4 months ago
3.0.232 2,374 4 months ago
3.0.231 425 4 months ago
3.0.230 4,296 4 months ago
3.0.229 691 4 months ago
3.0.228 3,142 4 months ago
3.0.227 4,081 4 months ago
3.0.226 4,288 4 months ago
3.0.225 7,109 4 months ago
3.0.224 6,193 4 months ago
3.0.223 662 4 months ago
3.0.222 1,139 4 months ago
3.0.221 563 4 months ago
3.0.220 5,671 5 months ago
3.0.219 2,311 5 months ago
3.0.218 90 5 months ago
3.0.217 3,817 5 months ago
3.0.216 79 5 months ago
3.0.215 10,594 5 months ago
3.0.214 1,164 5 months ago
3.0.213 4,094 5 months ago
3.0.212 967 5 months ago
3.0.211 565 5 months ago
3.0.210 4,330 5 months ago
3.0.209 97 5 months ago
3.0.208 3,434 5 months ago
3.0.207 188 5 months ago
2.1.206 12,184 5 months ago
2.1.205 4,953 5 months ago
2.1.204 12,113 5 months ago
2.1.203 844 5 months ago
2.1.202 2,156 5 months ago
2.1.201 1,268 5 months ago
2.1.200 1,069 5 months ago
2.1.199 94 5 months ago
2.1.198 1,895 5 months ago
2.1.197 247 5 months ago
2.1.196 4,622 5 months ago
2.1.195 6,021 5 months ago
2.1.194 13,282 5 months ago
2.1.192 9,640 5 months ago
2.1.191 10,378 5 months ago
2.1.190 6,593 5 months ago
2.1.189 10,667 5 months ago
2.1.188 1,477 5 months ago
2.1.187 1,056 5 months ago
2.1.186 8,531 6 months ago
2.1.185 6,202 6 months ago
2.1.184 2,355 6 months ago
2.1.183 6,871 6 months ago
2.1.182 940 6 months ago
2.1.181 552 6 months ago
2.1.180 10,988 6 months ago
2.1.179 907 6 months ago
2.1.178 5,515 6 months ago
2.1.177 841 6 months ago
2.1.176 12,127 6 months ago
2.1.175 3,728 6 months ago
2.1.174 9,004 6 months ago
2.1.173 2,713 6 months ago
2.1.172 6,648 6 months ago
2.1.171 1,786 6 months ago
2.1.170 2,734 6 months ago
2.1.169 7,687 6 months ago
2.1.168 2,211 6 months ago
2.1.167 1,616 6 months ago
2.1.166 9,332 6 months ago
2.1.165 5,274 6 months ago
2.1.164 90 6 months ago
2.1.163 289 6 months ago
2.1.162 90 6 months ago
2.1.161 7,915 6 months ago
2.1.160 7,566 6 months ago
2.1.159 6,962 6 months ago
2.1.158 7,152 6 months ago
2.1.157 3,280 6 months ago
2.1.156 1,925 6 months ago
2.1.155 2,021 6 months ago
2.1.154 6,539 6 months ago
2.1.153 723 6 months ago
2.1.152 876 6 months ago
2.1.151 85 6 months ago
2.1.150 2,355 6 months ago
2.1.149 11,834 7 months ago
2.1.148 94 7 months ago
2.1.147 414 7 months ago
2.1.146 4,827 7 months ago
2.1.145 4,182 7 months ago
2.1.144 5,472 7 months ago
2.1.143 100 7 months ago
2.1.142 518 7 months ago
2.1.141 1,225 7 months ago
2.1.140 13,371 7 months ago
2.1.139 7,556 7 months ago
2.1.138 5,125 7 months ago
2.1.137 3,072 7 months ago
2.1.136 5,975 7 months ago
2.1.135 4,912 7 months ago
2.1.134 11,177 7 months ago
2.1.133 2,340 7 months ago
2.1.132 3,731 7 months ago
2.1.131 4,106 7 months ago
2.1.130 2,609 7 months ago
2.1.129 1,237 7 months ago
2.1.128 94 7 months ago
2.1.127 103 7 months ago
2.1.126 89 7 months ago
2.1.125 16,822 7 months ago
2.1.124 6,546 7 months ago
2.1.123 3,381 7 months ago
2.1.122 2,033 7 months ago
2.1.121 4,124 7 months ago
2.1.120 2,214 7 months ago
2.1.119 87 7 months ago
2.1.118 1,626 7 months ago
2.1.117 5,887 7 months ago
2.1.116 1,399 7 months ago
2.1.115 12,092 7 months ago
2.1.114 1,197 7 months ago
2.1.113 4,942 7 months ago
2.1.112 9,564 7 months ago
2.1.111 6,758 7 months ago
2.1.110 6,708 7 months ago
2.1.109 3,817 7 months ago
2.1.108 436 7 months ago
2.1.107 4,729 7 months ago
2.1.106 98 7 months ago
2.1.105 4,808 7 months ago
2.1.104 2,921 7 months ago
2.1.103 9,072 8 months ago
2.1.102 8,204 8 months ago
2.1.101 7,868 8 months ago
2.1.100 9,188 8 months ago
2.1.99 559 8 months ago
2.1.98 8,677 8 months ago
2.1.97 1,053 8 months ago
2.1.96 979 8 months ago
2.1.95 633 8 months ago
2.1.94 206 8 months ago
2.1.93 9,457 8 months ago
2.1.92 8,228 9 months ago
2.1.91 2,236 9 months ago
2.1.90 6,825 9 months ago
2.1.89 224 9 months ago
2.1.88 2,163 9 months ago
2.1.87 2,043 9 months ago
2.1.86 217 9 months ago
2.1.85 222 9 months ago
2.1.83 2,121 9 months ago
2.1.82 3,228 9 months ago
2.1.80 835 9 months ago
2.1.79 1,251 9 months ago
2.1.78 7,716 9 months ago
2.1.77 3,052 9 months ago
2.1.76 10,411 9 months ago
2.1.75 108 9 months ago
2.1.74 125 9 months ago
2.1.73 107 9 months ago
2.1.72 2,505 9 months ago
2.1.71 93 9 months ago
2.1.70 6,938 9 months ago
2.1.69 2,274 9 months ago
2.1.68 2,575 9 months ago
2.1.67 671 9 months ago
2.1.66 1,324 9 months ago
2.1.65 3,044 9 months ago
2.1.64 2,700 9 months ago
2.1.63 107 9 months ago
2.1.62 3,617 9 months ago
2.1.61 73,142 5/25/2024
2.1.60 104 5/25/2024
2.1.59 519 5/25/2024
2.1.58 13,967 5/22/2024
2.1.57 108 5/22/2024
2.1.56 11,483 5/17/2024
2.1.55 15,905 4/30/2024
2.1.54 15,896 4/28/2024
2.1.53 110 4/28/2024
2.1.52 668 4/27/2024
2.1.51 99 4/27/2024
2.1.50 25,024 4/12/2024
2.1.49 1,349 4/12/2024
2.1.48 115 4/12/2024
2.1.47 38,414 3/18/2024
2.1.46 8,760 3/13/2024
2.1.45 2,273 3/13/2024
2.1.44 61,119 2/21/2024
2.1.43 2,733 2/21/2024
2.1.42 113 2/21/2024
2.1.41 21,790 2/16/2024
2.1.40 642 2/16/2024
2.1.39 23,847 2/9/2024
2.1.38 18,931 2/6/2024
2.1.37 118 2/6/2024
2.1.36 62,727 1/15/2024
2.1.35 828 1/15/2024
2.1.34 26,121 1/5/2024
2.1.33 2,448 1/5/2024
2.1.32 13,351 12/27/2023
2.1.31 1,330 12/27/2023
2.1.30 1,084 12/27/2023
2.1.29 7,839 12/25/2023
2.1.28 1,383 12/25/2023
2.1.27 679 12/25/2023
2.1.26 10,549 12/23/2023
2.1.25 130 12/23/2023
2.1.24 808 12/23/2023
2.1.23 20,702 12/9/2023
2.1.22 1,339 12/9/2023
2.1.21 246 12/9/2023
2.1.20 1,922 12/9/2023
2.1.19 10,831 12/4/2023
2.1.18 821 12/4/2023
2.1.17 5,437 11/26/2023
2.1.16 5,396 11/23/2023
2.1.15 341 11/23/2023
2.1.14 955 11/23/2023
2.1.13 9,417 11/19/2023
2.1.12 137 11/19/2023
2.1.11 1,200 11/18/2023
2.1.10 3,409 11/18/2023
2.1.9 1,941 11/18/2023
2.1.8 3,674 11/17/2023
2.1.7 1,073 11/17/2023
2.1.6 1,705 11/17/2023
2.1.5 876 11/17/2023
2.1.4 638 11/16/2023
2.1.3 182 11/16/2023
2.0.52 1,248 11/15/2023
2.0.51 2,133 11/15/2023
2.0.2 133 11/16/2023
2.0.1 140 11/16/2023
1.0.50 4,115 11/11/2023
1.0.49 122 11/11/2023
1.0.48 107 11/11/2023
1.0.47 1,337 11/9/2023
1.0.46 128 11/9/2023
1.0.45 5,210 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,513 10/18/2023
1.0.40 3,008 10/17/2023
1.0.39 1,240 10/16/2023
1.0.38 2,666 10/13/2023
1.0.37 157 10/13/2023
1.0.36 6,164 9/19/2023
1.0.35 2,057 9/18/2023
1.0.34 131 9/18/2023
1.0.33 7,672 8/30/2023
1.0.32 2,688 8/29/2023
1.0.31 4,158 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,032 8/7/2023
1.0.26 166 8/7/2023
1.0.25 7,977 7/10/2023
1.0.24 10,366 7/7/2023
1.0.23 161 7/7/2023
1.0.22 9,308 6/28/2023
1.0.21 44,360 5/24/2023
1.0.20 1,130 5/24/2023
1.0.19 409 5/23/2023
1.0.18 190 5/31/2023
1.0.17 2,748 5/23/2023
1.0.16 2,939 5/22/2023
1.0.15 5,967 5/17/2023
1.0.14 179 5/17/2023
1.0.13 5,599 4/28/2023
1.0.12 2,212 4/24/2023
1.0.11 965 4/21/2023
1.0.10 4,484 4/12/2023
1.0.9 1,069 4/11/2023
1.0.8 2,027 4/3/2023
1.0.7 232 4/3/2023
1.0.6 366 4/1/2023
1.0.5 2,039 3/23/2023
1.0.3 545 2/28/2023
1.0.2 450 2/16/2023