Soenneker.Extensions.Enumerable.String
4.0.1416
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.Extensions.Enumerable.String --version 4.0.1416
NuGet\Install-Package Soenneker.Extensions.Enumerable.String -Version 4.0.1416
<PackageReference Include="Soenneker.Extensions.Enumerable.String" Version="4.0.1416" />
<PackageVersion Include="Soenneker.Extensions.Enumerable.String" Version="4.0.1416" />
<PackageReference Include="Soenneker.Extensions.Enumerable.String" />
paket add Soenneker.Extensions.Enumerable.String --version 4.0.1416
#r "nuget: Soenneker.Extensions.Enumerable.String, 4.0.1416"
#:package Soenneker.Extensions.Enumerable.String@4.0.1416
#addin nuget:?package=Soenneker.Extensions.Enumerable.String&version=4.0.1416
#tool nuget:?package=Soenneker.Extensions.Enumerable.String&version=4.0.1416
Soenneker.Extensions.Enumerable.String
A collection of helpful enumerable string extension methods.
Installation
dotnet add package Soenneker.Extensions.Enumerable.String
Quick start
using Soenneker.Extensions.Enumerable.String;
// Given an existing IEnumerable<string>? named enumerable:
var result = enumerable.ContainsAPart(part);
Common operations
ContainsAPart()- Returnstrueif any element containspartusing ordinal comparisons.ToCommaSeparatedString()- Joins the values with commas and optionally spaces; null or empty input produces an empty string.ToSeparatedStringFormattable()- Fast-path join forTthat implementsISpanFormattable. Avoids boxing that can occur in the unconstrained join overload.ToSeparatedString()- Joins the elements into a single string usingseparator(optionally followed by a space). Null items matchstring.Join(string?, IEnumerablestring?)semantics (treated as empty).ToLower()- Lazily projects every string to lowercase; enumeration performs the conversions.ToUpper()- Lazily projects every string to uppercase; enumeration performs the conversions.ToHashSetIgnoreCase()- Materializes a case-insensitiveHashSet<string>, so casing-only duplicates collapse.ExceptNullOrEmpty()- Removes null or empty strings from thesource.ExceptNullOrWhiteSpace()- Removes null or white space strings from thesource.DistinctIgnoreCase()- Returns a lazy sequence with casing-only duplicates removed, preserving the first encountered value.StartsWithIgnoreCase()- Returnstruewhen any string starts with the prefix using a case-insensitive comparison.EndsWithIgnoreCase()- Returnstruewhen any string ends with the suffix using a case-insensitive comparison.
The package also includes one additional operation for more specialized cases.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Soenneker.Extensions.Enumerable (>= 4.0.653)
- Soenneker.Extensions.Spans.ReadOnly.Strings (>= 4.0.27)
- Soenneker.Extensions.String (>= 4.0.727)
NuGet packages (6)
Showing the top 5 NuGet packages that depend on Soenneker.Extensions.Enumerable.String:
| Package | Downloads |
|---|---|
|
Soenneker.Extensions.Object
A collection of helpful Object extension methods |
|
|
Soenneker.Validators.Email.Disposable
Checks whether an email address uses a disposable or temporary domain. |
|
|
Soenneker.SendGrid.Contacts
Adds, retrieves, searches, and deletes SendGrid Marketing contacts. |
|
|
Soenneker.HttpClients.LoggingHandler
A handler that allows for injecting into HttpClients to log requests and responses |
|
|
Soenneker.Extensions.Dtos.Email
A collection of helpful EmailDto extension methods |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.1433 | 0 | 9/4/2026 |
| 4.0.1432 | 0 | 9/4/2026 |
| 4.0.1431 | 10,018 | 8/31/2026 |
| 4.0.1430 | 1,461 | 8/31/2026 |
| 4.0.1429 | 1,267 | 8/31/2026 |
| 4.0.1428 | 982 | 8/31/2026 |
| 4.0.1426 | 969 | 8/30/2026 |
| 4.0.1425 | 690 | 8/30/2026 |
| 4.0.1423 | 76 | 8/30/2026 |
| 4.0.1422 | 5,016 | 8/30/2026 |
| 4.0.1421 | 1,633 | 8/30/2026 |
| 4.0.1419 | 76 | 8/30/2026 |
| 4.0.1418 | 415 | 8/30/2026 |
| 4.0.1416 | 79 | 8/29/2026 |
| 4.0.1414 | 1,202 | 8/29/2026 |
| 4.0.1413 | 80 | 8/29/2026 |
| 4.0.1412 | 276 | 8/29/2026 |
| 4.0.1411 | 363 | 8/29/2026 |
| 4.0.1410 | 24,850 | 8/26/2026 |
| 4.0.1408 | 1,172 | 8/25/2026 |
Update dependency Soenneker.Extensions.String to 4.0.727 (#1889)