Soenneker.Extensions.Enumerable 3.0.248

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

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

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.323 1,456 7 days ago
3.0.322 915 7 days ago
3.0.321 1,178 7 days ago
3.0.320 366 7 days ago
3.0.319 1,321 7 days ago
3.0.318 3,083 7 days ago
3.0.317 79 7 days ago
3.0.316 2,090 8 days ago
3.0.315 82 8 days ago
3.0.314 2,850 8 days ago
3.0.313 81 8 days ago
3.0.312 9,479 9 days ago
3.0.311 77 9 days ago
3.0.310 134 9 days ago
3.0.309 90 9 days ago
3.0.308 3,390 9 days ago
3.0.307 83 9 days ago
3.0.306 161 9 days ago
3.0.305 642 9 days ago
3.0.304 90 9 days ago
3.0.303 1,042 10 days ago
3.0.302 352 10 days ago
3.0.301 6,324 10 days ago
3.0.300 4,437 10 days ago
3.0.299 1,001 10 days ago
3.0.298 3,240 10 days ago
3.0.297 2,451 10 days ago
3.0.296 75 10 days ago
3.0.295 77 10 days ago
3.0.294 11,429 13 days ago
3.0.293 1,919 13 days ago
3.0.292 1,081 13 days ago
3.0.291 1,307 13 days ago
3.0.290 8,437 16 days ago
3.0.289 1,804 17 days ago
3.0.288 1,756 17 days ago
3.0.287 2,481 17 days ago
3.0.286 2,659 17 days ago
3.0.285 2,096 17 days ago
3.0.284 1,724 17 days ago
3.0.283 1,361 17 days ago
3.0.282 2,904 17 days ago
3.0.281 3,340 18 days ago
3.0.280 1,299 18 days ago
3.0.279 3,752 18 days ago
3.0.278 265 18 days ago
3.0.277 3,577 18 days ago
3.0.276 5,706 19 days ago
3.0.275 5,717 19 days ago
3.0.274 7,754 19 days ago
3.0.273 417 20 days ago
3.0.272 3,791 20 days ago
3.0.271 4,914 20 days ago
3.0.270 1,037 20 days ago
3.0.269 5,887 21 days ago
3.0.268 11,535 22 days ago
3.0.267 125 23 days ago
3.0.266 7,520 24 days ago
3.0.265 6,097 24 days ago
3.0.264 343 24 days ago
3.0.263 1,073 24 days ago
3.0.262 8,115 a month ago
3.0.261 2,233 a month ago
3.0.260 3,669 a month ago
3.0.259 2,486 a month ago
3.0.258 6,982 a month ago
3.0.257 1,300 a month ago
3.0.256 2,275 a month ago
3.0.255 7,099 a month ago
3.0.254 177 a month ago
3.0.253 316 a month ago
3.0.252 979 a month ago
3.0.251 5,632 a month ago
3.0.250 104 a month ago
3.0.249 99 a month ago
3.0.248 4,451 a month ago
3.0.247 4,430 a month ago
3.0.246 3,408 a month ago
3.0.245 4,065 a month ago
3.0.244 574 a month ago
3.0.243 495 a month ago
3.0.242 5,157 a month ago
3.0.241 460 a month ago
3.0.240 1,109 a month ago
3.0.239 3,586 a month ago
3.0.238 3,772 a month ago
3.0.237 2,829 a month ago
3.0.236 3,585 a month ago
3.0.235 3,397 a month ago
3.0.234 4,691 a month ago
3.0.233 3,858 a month ago
3.0.232 2,362 a month ago
3.0.231 415 a month ago
3.0.230 4,278 a month ago
3.0.229 598 a month ago
3.0.228 3,125 a month ago
3.0.227 4,069 a month ago
3.0.226 4,278 a month ago
3.0.225 6,245 2 months ago
3.0.224 6,170 2 months ago
3.0.223 653 2 months ago
3.0.222 1,133 2 months ago
3.0.221 557 2 months ago
3.0.220 5,653 2 months ago
3.0.219 2,305 2 months ago
3.0.218 82 2 months ago
3.0.217 3,810 2 months ago
3.0.216 72 2 months ago
3.0.215 10,561 2 months ago
3.0.214 1,154 2 months ago
3.0.213 4,078 2 months ago
3.0.212 962 2 months ago
3.0.211 559 2 months ago
3.0.210 4,315 2 months ago
3.0.209 91 2 months ago
3.0.208 3,425 2 months ago
3.0.207 181 2 months ago
2.1.206 11,665 2 months ago
2.1.205 4,908 2 months ago
2.1.204 12,091 2 months ago
2.1.203 836 2 months ago
2.1.202 2,149 2 months ago
2.1.201 1,262 2 months ago
2.1.200 1,053 2 months ago
2.1.199 87 2 months ago
2.1.198 1,890 2 months ago
2.1.197 242 2 months ago
2.1.196 4,609 2 months ago
2.1.195 6,010 2 months ago
2.1.194 13,200 2 months ago
2.1.192 9,607 2 months ago
2.1.191 10,353 2 months ago
2.1.190 6,580 2 months ago
2.1.189 9,454 3 months ago
2.1.188 1,470 3 months ago
2.1.187 1,046 3 months ago
2.1.186 8,509 3 months ago
2.1.185 6,188 3 months ago
2.1.184 2,351 3 months ago
2.1.183 6,855 3 months ago
2.1.182 933 3 months ago
2.1.181 547 3 months ago
2.1.180 10,943 3 months ago
2.1.179 903 3 months ago
2.1.178 5,503 3 months ago
2.1.177 835 3 months ago
2.1.176 12,097 3 months ago
2.1.175 3,710 3 months ago
2.1.174 8,978 3 months ago
2.1.173 2,702 3 months ago
2.1.172 6,642 3 months ago
2.1.171 1,774 3 months ago
2.1.170 2,723 3 months ago
2.1.169 7,607 3 months ago
2.1.168 2,205 3 months ago
2.1.167 1,611 3 months ago
2.1.166 9,241 3 months ago
2.1.165 5,261 3 months ago
2.1.164 82 3 months ago
2.1.163 282 3 months ago
2.1.162 83 3 months ago
2.1.161 7,900 3 months ago
2.1.160 7,535 3 months ago
2.1.159 6,933 4 months ago
2.1.158 7,072 4 months ago
2.1.157 3,273 4 months ago
2.1.156 1,914 4 months ago
2.1.155 2,011 4 months ago
2.1.154 6,512 4 months ago
2.1.153 715 4 months ago
2.1.152 870 4 months ago
2.1.151 77 4 months ago
2.1.150 2,346 4 months ago
2.1.149 11,789 4 months ago
2.1.148 88 4 months ago
2.1.147 407 4 months ago
2.1.146 4,811 4 months ago
2.1.145 4,160 4 months ago
2.1.144 5,450 4 months ago
2.1.143 96 4 months ago
2.1.142 512 4 months ago
2.1.141 1,211 4 months ago
2.1.140 13,345 4 months ago
2.1.139 7,496 4 months ago
2.1.138 5,115 4 months ago
2.1.137 3,070 4 months ago
2.1.136 5,967 4 months ago
2.1.135 4,881 4 months ago
2.1.134 11,158 4 months ago
2.1.133 2,337 4 months ago
2.1.132 3,728 4 months ago
2.1.131 4,099 4 months ago
2.1.130 2,600 4 months ago
2.1.129 1,234 4 months ago
2.1.128 89 4 months ago
2.1.127 100 4 months ago
2.1.126 86 4 months ago
2.1.125 16,784 4 months ago
2.1.124 6,529 4 months ago
2.1.123 3,369 4 months ago
2.1.122 2,031 4 months ago
2.1.121 4,108 4 months ago
2.1.120 2,211 4 months ago
2.1.119 86 4 months ago
2.1.118 1,623 4 months ago
2.1.117 5,885 4 months ago
2.1.116 1,398 4 months ago
2.1.115 12,059 4 months ago
2.1.114 1,182 4 months ago
2.1.113 4,924 4 months ago
2.1.112 9,525 4 months ago
2.1.111 6,720 4 months ago
2.1.110 6,690 5 months ago
2.1.109 3,812 5 months ago
2.1.108 430 5 months ago
2.1.107 4,724 5 months ago
2.1.106 97 5 months ago
2.1.105 4,795 5 months ago
2.1.104 2,908 5 months ago
2.1.103 9,047 5 months ago
2.1.102 8,173 5 months ago
2.1.101 7,818 5 months ago
2.1.100 9,167 5 months ago
2.1.99 550 5 months ago
2.1.98 8,665 6 months ago
2.1.97 1,050 6 months ago
2.1.96 972 6 months ago
2.1.95 629 6 months ago
2.1.94 202 6 months ago
2.1.93 9,113 6 months ago
2.1.92 8,182 6 months ago
2.1.91 2,228 6 months ago
2.1.90 6,790 6 months ago
2.1.89 217 6 months ago
2.1.88 2,146 6 months ago
2.1.87 2,038 6 months ago
2.1.86 210 6 months ago
2.1.85 210 6 months ago
2.1.83 2,110 6 months ago
2.1.82 3,215 6 months ago
2.1.80 826 6 months ago
2.1.79 1,247 6 months ago
2.1.78 7,691 6 months ago
2.1.77 3,041 6 months ago
2.1.76 7,802 6 months ago
2.1.75 106 6 months ago
2.1.74 121 6 months ago
2.1.73 103 6 months ago
2.1.72 2,502 6 months ago
2.1.71 90 6 months ago
2.1.70 6,917 6 months ago
2.1.69 2,263 6 months ago
2.1.68 2,572 6 months ago
2.1.67 666 6 months ago
2.1.66 1,308 6 months ago
2.1.65 3,019 6 months ago
2.1.64 2,687 6 months ago
2.1.63 102 6 months ago
2.1.62 3,590 6 months ago
2.1.61 72,785 8 months ago
2.1.60 103 8 months ago
2.1.59 518 8 months ago
2.1.58 13,940 8 months ago
2.1.57 107 8 months ago
2.1.56 11,446 8 months ago
2.1.55 15,863 8 months ago
2.1.54 15,806 8 months ago
2.1.53 108 8 months ago
2.1.52 667 8 months ago
2.1.51 98 8 months ago
2.1.50 24,955 9 months ago
2.1.49 1,342 9 months ago
2.1.48 114 9 months ago
2.1.47 37,266 10 months ago
2.1.46 8,728 10 months ago
2.1.45 2,265 10 months ago
2.1.44 60,917 2/21/2024
2.1.43 2,722 2/21/2024
2.1.42 108 2/21/2024
2.1.41 21,711 2/16/2024
2.1.40 630 2/16/2024
2.1.39 23,780 2/9/2024
2.1.38 18,832 2/6/2024
2.1.37 116 2/6/2024
2.1.36 62,554 1/15/2024
2.1.35 821 1/15/2024
2.1.34 26,051 1/5/2024
2.1.33 2,436 1/5/2024
2.1.32 13,323 12/27/2023
2.1.31 1,323 12/27/2023
2.1.30 1,082 12/27/2023
2.1.29 7,812 12/25/2023
2.1.28 1,367 12/25/2023
2.1.27 677 12/25/2023
2.1.26 10,480 12/23/2023
2.1.25 128 12/23/2023
2.1.24 806 12/23/2023
2.1.23 20,598 12/9/2023
2.1.22 1,334 12/9/2023
2.1.21 245 12/9/2023
2.1.20 1,906 12/9/2023
2.1.19 10,780 12/4/2023
2.1.18 819 12/4/2023
2.1.17 5,423 11/26/2023
2.1.16 5,386 11/23/2023
2.1.15 339 11/23/2023
2.1.14 946 11/23/2023
2.1.13 9,379 11/19/2023
2.1.12 135 11/19/2023
2.1.11 1,192 11/18/2023
2.1.10 3,399 11/18/2023
2.1.9 1,939 11/18/2023
2.1.8 3,655 11/17/2023
2.1.7 1,069 11/17/2023
2.1.6 1,695 11/17/2023
2.1.5 873 11/17/2023
2.1.4 637 11/16/2023
2.1.3 181 11/16/2023
2.0.52 1,246 11/15/2023
2.0.51 2,126 11/15/2023
2.0.2 132 11/16/2023
2.0.1 138 11/16/2023
1.0.50 4,108 11/11/2023
1.0.49 120 11/11/2023
1.0.48 105 11/11/2023
1.0.47 1,336 11/9/2023
1.0.46 127 11/9/2023
1.0.45 5,185 11/6/2023
1.0.44 2,229 11/3/2023
1.0.43 1,813 11/2/2023
1.0.42 1,877 11/1/2023
1.0.41 7,484 10/18/2023
1.0.40 3,000 10/17/2023
1.0.39 1,239 10/16/2023
1.0.38 2,657 10/13/2023
1.0.37 155 10/13/2023
1.0.36 6,146 9/19/2023
1.0.35 2,048 9/18/2023
1.0.34 129 9/18/2023
1.0.33 7,663 8/30/2023
1.0.32 2,665 8/29/2023
1.0.31 4,150 8/24/2023
1.0.30 141 8/24/2023
1.0.29 4,330 8/17/2023
1.0.28 163 8/17/2023
1.0.27 8,020 8/7/2023
1.0.26 164 8/7/2023
1.0.25 7,967 7/10/2023
1.0.24 10,304 7/7/2023
1.0.23 160 7/7/2023
1.0.22 9,292 6/28/2023
1.0.21 44,287 5/24/2023
1.0.20 1,125 5/24/2023
1.0.19 403 5/23/2023
1.0.18 184 5/31/2023
1.0.17 2,742 5/23/2023
1.0.16 2,933 5/22/2023
1.0.15 5,953 5/17/2023
1.0.14 172 5/17/2023
1.0.13 5,579 4/28/2023
1.0.12 2,205 4/24/2023
1.0.11 958 4/21/2023
1.0.10 4,477 4/12/2023
1.0.9 1,062 4/11/2023
1.0.8 2,021 4/3/2023
1.0.7 226 4/3/2023
1.0.6 359 4/1/2023
1.0.5 2,002 3/23/2023
1.0.3 539 2/28/2023
1.0.2 444 2/16/2023