Soenneker.Extensions.Enumerable 3.0.256

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

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

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. 
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.289 0 12/24/2024
3.0.288 0 12/24/2024
3.0.287 34 12/24/2024
3.0.286 310 12/24/2024
3.0.285 437 12/24/2024
3.0.284 704 12/24/2024
3.0.283 657 12/23/2024
3.0.282 1,273 12/23/2024
3.0.281 1,536 12/23/2024
3.0.280 672 12/23/2024
3.0.279 1,959 12/23/2024
3.0.278 142 12/23/2024
3.0.277 2,171 12/22/2024
3.0.276 3,307 12/22/2024
3.0.275 3,244 12/22/2024
3.0.274 4,120 12/21/2024
3.0.273 285 12/21/2024
3.0.272 1,949 12/21/2024
3.0.271 2,858 12/21/2024
3.0.270 745 12/21/2024
3.0.269 3,418 12/20/2024
3.0.268 7,343 12/18/2024
3.0.267 96 12/18/2024
3.0.266 4,701 12/17/2024
3.0.265 3,670 12/17/2024
3.0.264 328 12/16/2024
3.0.263 1,042 12/16/2024
3.0.262 7,492 12/10/2024
3.0.261 2,218 12/9/2024
3.0.260 3,653 12/9/2024
3.0.259 2,469 12/9/2024
3.0.258 6,967 12/6/2024
3.0.257 1,285 12/6/2024
3.0.256 2,260 12/6/2024
3.0.255 7,082 12/6/2024
3.0.254 162 12/6/2024
3.0.253 301 12/6/2024
3.0.252 962 12/6/2024
3.0.251 5,617 12/6/2024
3.0.250 87 12/6/2024
3.0.249 82 12/6/2024
3.0.248 4,436 12/5/2024
3.0.247 4,389 12/5/2024
3.0.246 3,397 12/5/2024
3.0.245 4,055 12/5/2024
3.0.244 562 12/5/2024
3.0.243 483 12/5/2024
3.0.242 5,147 12/4/2024
3.0.241 448 12/4/2024
3.0.240 1,099 12/4/2024
3.0.239 3,573 12/4/2024
3.0.238 3,761 12/3/2024
3.0.237 2,819 12/3/2024
3.0.236 3,504 12/3/2024
3.0.235 3,385 12/3/2024
3.0.234 4,679 12/2/2024
3.0.233 3,849 12/2/2024
3.0.232 2,353 12/2/2024
3.0.231 404 12/2/2024
3.0.230 4,269 12/1/2024
3.0.229 577 12/1/2024
3.0.228 3,116 12/1/2024
3.0.227 4,060 12/1/2024
3.0.226 4,269 11/29/2024
3.0.225 6,182 11/21/2024
3.0.224 6,164 11/20/2024
3.0.223 646 11/20/2024
3.0.222 1,127 11/20/2024
3.0.221 549 11/19/2024
3.0.220 5,645 11/19/2024
3.0.219 2,297 11/19/2024
3.0.218 76 11/19/2024
3.0.217 3,804 11/19/2024
3.0.216 66 11/19/2024
3.0.215 10,552 11/14/2024
3.0.214 1,147 11/14/2024
3.0.213 4,065 11/14/2024
3.0.212 955 11/14/2024
3.0.211 550 11/14/2024
3.0.210 4,308 11/14/2024
3.0.209 84 11/14/2024
3.0.208 3,418 11/14/2024
3.0.207 174 11/14/2024
2.1.206 11,559 11/13/2024
2.1.205 4,881 11/13/2024
2.1.204 12,083 11/9/2024
2.1.203 829 11/9/2024
2.1.202 2,140 11/9/2024
2.1.201 1,253 11/8/2024
2.1.200 1,046 11/8/2024
2.1.199 80 11/8/2024
2.1.198 1,881 11/8/2024
2.1.197 233 11/8/2024
2.1.196 4,600 11/8/2024
2.1.195 6,003 11/8/2024
2.1.194 13,190 11/1/2024
2.1.192 9,601 10/29/2024
2.1.191 10,345 10/28/2024
2.1.190 6,571 10/26/2024
2.1.189 9,374 10/22/2024
2.1.188 1,456 10/22/2024
2.1.187 1,040 10/22/2024
2.1.186 8,500 10/17/2024
2.1.185 6,184 10/15/2024
2.1.184 2,346 10/14/2024
2.1.183 6,852 10/11/2024
2.1.182 930 10/11/2024
2.1.181 544 10/11/2024
2.1.180 10,938 10/9/2024
2.1.179 898 10/8/2024
2.1.178 5,490 10/8/2024
2.1.177 830 10/8/2024
2.1.176 12,092 10/3/2024
2.1.175 3,707 10/3/2024
2.1.174 8,975 10/2/2024
2.1.173 2,698 10/2/2024
2.1.172 6,637 10/1/2024
2.1.171 1,771 10/1/2024
2.1.170 2,718 10/1/2024
2.1.169 7,593 9/29/2024
2.1.168 2,202 9/29/2024
2.1.167 1,605 9/29/2024
2.1.166 9,194 9/27/2024
2.1.165 5,256 9/27/2024
2.1.164 77 9/27/2024
2.1.163 279 9/27/2024
2.1.162 80 9/27/2024
2.1.161 7,895 9/26/2024
2.1.160 7,519 9/26/2024
2.1.159 6,925 9/26/2024
2.1.158 7,060 9/23/2024
2.1.157 3,270 9/23/2024
2.1.156 1,909 9/23/2024
2.1.155 2,006 9/23/2024
2.1.154 6,507 9/23/2024
2.1.153 712 9/23/2024
2.1.152 865 9/23/2024
2.1.151 74 9/23/2024
2.1.150 2,341 9/23/2024
2.1.149 11,779 9/17/2024
2.1.148 85 9/17/2024
2.1.147 404 9/17/2024
2.1.146 4,802 9/17/2024
2.1.145 4,151 9/17/2024
2.1.144 5,442 9/17/2024
2.1.143 90 9/17/2024
2.1.142 508 9/17/2024
2.1.141 1,205 9/17/2024
2.1.140 13,341 9/16/2024
2.1.139 7,490 9/12/2024
2.1.138 5,109 9/11/2024
2.1.137 3,064 9/11/2024
2.1.136 5,963 9/11/2024
2.1.135 4,875 9/11/2024
2.1.134 11,154 9/10/2024
2.1.133 2,334 9/10/2024
2.1.132 3,725 9/9/2024
2.1.131 4,091 9/9/2024
2.1.130 2,597 9/9/2024
2.1.129 1,231 9/9/2024
2.1.128 86 9/9/2024
2.1.127 97 9/9/2024
2.1.126 83 9/9/2024
2.1.125 16,781 9/6/2024
2.1.124 6,519 9/6/2024
2.1.123 3,363 9/5/2024
2.1.122 2,026 9/5/2024
2.1.121 4,105 9/5/2024
2.1.120 2,208 9/5/2024
2.1.119 82 9/5/2024
2.1.118 1,617 9/5/2024
2.1.117 5,882 9/5/2024
2.1.116 1,393 9/4/2024
2.1.115 12,054 9/3/2024
2.1.114 1,173 9/3/2024
2.1.113 4,919 9/3/2024
2.1.112 9,522 8/29/2024
2.1.111 6,706 8/26/2024
2.1.110 6,687 8/21/2024
2.1.109 3,809 8/21/2024
2.1.108 419 8/20/2024
2.1.107 4,721 8/20/2024
2.1.106 92 8/20/2024
2.1.105 4,792 8/20/2024
2.1.104 2,904 8/20/2024
2.1.103 9,039 8/15/2024
2.1.102 8,170 8/13/2024
2.1.101 7,810 8/6/2024
2.1.100 9,158 8/1/2024
2.1.99 547 8/1/2024
2.1.98 8,660 7/25/2024
2.1.97 1,047 7/25/2024
2.1.96 967 7/25/2024
2.1.95 626 7/24/2024
2.1.94 199 7/24/2024
2.1.93 9,085 7/20/2024
2.1.92 8,172 7/14/2024
2.1.91 2,223 7/14/2024
2.1.90 6,782 7/10/2024
2.1.89 214 7/10/2024
2.1.88 2,143 7/10/2024
2.1.87 2,033 7/10/2024
2.1.86 205 7/10/2024
2.1.85 191 7/10/2024
2.1.83 2,107 7/10/2024
2.1.82 3,210 7/9/2024
2.1.80 823 7/9/2024
2.1.79 1,244 7/9/2024
2.1.78 7,679 7/9/2024
2.1.77 3,038 7/9/2024
2.1.76 7,582 7/9/2024
2.1.75 103 7/9/2024
2.1.74 118 7/8/2024
2.1.73 100 7/8/2024
2.1.72 2,497 7/8/2024
2.1.71 87 7/8/2024
2.1.70 6,914 7/8/2024
2.1.69 2,260 7/7/2024
2.1.68 2,569 7/7/2024
2.1.67 661 7/7/2024
2.1.66 1,299 7/7/2024
2.1.65 3,014 7/7/2024
2.1.64 2,682 7/7/2024
2.1.63 99 7/7/2024
2.1.62 3,587 7/5/2024
2.1.61 72,744 5/25/2024
2.1.60 100 5/25/2024
2.1.59 510 5/25/2024
2.1.58 13,922 5/22/2024
2.1.57 104 5/22/2024
2.1.56 11,437 5/17/2024
2.1.55 15,860 4/30/2024
2.1.54 15,787 4/28/2024
2.1.53 105 4/28/2024
2.1.52 664 4/27/2024
2.1.51 95 4/27/2024
2.1.50 24,947 4/12/2024
2.1.49 1,339 4/12/2024
2.1.48 111 4/12/2024
2.1.47 37,110 3/18/2024
2.1.46 8,725 3/13/2024
2.1.45 2,257 3/13/2024
2.1.44 60,895 2/21/2024
2.1.43 2,719 2/21/2024
2.1.42 104 2/21/2024
2.1.41 21,693 2/16/2024
2.1.40 623 2/16/2024
2.1.39 23,764 2/9/2024
2.1.38 18,791 2/6/2024
2.1.37 113 2/6/2024
2.1.36 62,540 1/15/2024
2.1.35 817 1/15/2024
2.1.34 26,033 1/5/2024
2.1.33 2,432 1/5/2024
2.1.32 13,319 12/27/2023
2.1.31 1,320 12/27/2023
2.1.30 1,079 12/27/2023
2.1.29 7,809 12/25/2023
2.1.28 1,364 12/25/2023
2.1.27 674 12/25/2023
2.1.26 10,477 12/23/2023
2.1.25 125 12/23/2023
2.1.24 803 12/23/2023
2.1.23 20,579 12/9/2023
2.1.22 1,331 12/9/2023
2.1.21 242 12/9/2023
2.1.20 1,903 12/9/2023
2.1.19 10,775 12/4/2023
2.1.18 816 12/4/2023
2.1.17 5,420 11/26/2023
2.1.16 5,378 11/23/2023
2.1.15 333 11/23/2023
2.1.14 942 11/23/2023
2.1.13 9,371 11/19/2023
2.1.12 132 11/19/2023
2.1.11 1,189 11/18/2023
2.1.10 3,392 11/18/2023
2.1.9 1,936 11/18/2023
2.1.8 3,652 11/17/2023
2.1.7 1,066 11/17/2023
2.1.6 1,692 11/17/2023
2.1.5 870 11/17/2023
2.1.4 632 11/16/2023
2.1.3 176 11/16/2023
2.0.52 1,243 11/15/2023
2.0.51 2,123 11/15/2023
2.0.2 127 11/16/2023
2.0.1 133 11/16/2023
1.0.50 4,105 11/11/2023
1.0.49 117 11/11/2023
1.0.48 102 11/11/2023
1.0.47 1,333 11/9/2023
1.0.46 123 11/9/2023
1.0.45 5,182 11/6/2023
1.0.44 2,226 11/3/2023
1.0.43 1,810 11/2/2023
1.0.42 1,874 11/1/2023
1.0.41 7,480 10/18/2023
1.0.40 2,997 10/17/2023
1.0.39 1,236 10/16/2023
1.0.38 2,654 10/13/2023
1.0.37 147 10/13/2023
1.0.36 6,143 9/19/2023
1.0.35 2,032 9/18/2023
1.0.34 126 9/18/2023
1.0.33 7,653 8/30/2023
1.0.32 2,662 8/29/2023
1.0.31 4,147 8/24/2023
1.0.30 138 8/24/2023
1.0.29 4,327 8/17/2023
1.0.28 160 8/17/2023
1.0.27 8,017 8/7/2023
1.0.26 161 8/7/2023
1.0.25 7,964 7/10/2023
1.0.24 10,301 7/7/2023
1.0.23 157 7/7/2023
1.0.22 9,289 6/28/2023
1.0.21 44,276 5/24/2023
1.0.20 1,122 5/24/2023
1.0.19 398 5/23/2023
1.0.18 181 5/31/2023
1.0.17 2,739 5/23/2023
1.0.16 2,930 5/22/2023
1.0.15 5,950 5/17/2023
1.0.14 169 5/17/2023
1.0.13 5,576 4/28/2023
1.0.12 2,202 4/24/2023
1.0.11 955 4/21/2023
1.0.10 4,474 4/12/2023
1.0.9 1,059 4/11/2023
1.0.8 2,018 4/3/2023
1.0.7 223 4/3/2023
1.0.6 356 4/1/2023
1.0.5 1,999 3/23/2023
1.0.3 535 2/28/2023
1.0.2 440 2/16/2023