Soenneker.Utils.String
4.0.3148
Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Soenneker.Utils.String --version 4.0.3148
NuGet\Install-Package Soenneker.Utils.String -Version 4.0.3148
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.Utils.String" Version="4.0.3148" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Utils.String" Version="4.0.3148" />
<PackageReference Include="Soenneker.Utils.String" />
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.Utils.String --version 4.0.3148
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Soenneker.Utils.String, 4.0.3148"
#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.
#:package Soenneker.Utils.String@4.0.3148
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Utils.String&version=4.0.3148
#tool nuget:?package=Soenneker.Utils.String&version=4.0.3148
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Soenneker.Utils.String
A utility library for useful String operations.
Installation
dotnet add package Soenneker.Utils.String
Quick start
using Soenneker.Utils.String.Registrars;
services.AddStringUtilAsSingleton();
Then inject IStringUtil wherever you need it.
Common operations
ToCombinedId()- For combining any number of strings with a ':' character between them. Will filter out null or empty strings.GetQueryParameter()- Retrieves the value of a query parameter from the specified URL.GetQueryParameters()- Retrieves the query parameters from the specified URL.ParseQueryStringUsingJson()- Maps query-string keys and values toTthrough JSON; returnsnulland optionally logs when conversion fails.ParseQueryString()- Parses a query string into an instance of the specified model type. Returns an instance of the specified model type populated with the query string parameters.GetDomainFromEmail()- Retrieves the domain from an email address. Returns the domain of the email address, or null if the email address is invalid.ExtractUrls()- Extracts URLs from the given value.BuildStringFromTemplate()- Similar to logging strings:logger.log("{variable} is a prime number", 2);"2 is a prime number".ConvertBase64JsonToObject()- Decodes Base64 JSON intoT; malformed Base64 or JSON throws, and pooled temporary storage is returned after use.
| 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Soenneker.Extensions.Enumerable (>= 4.0.655)
- Soenneker.Extensions.NameValueCollection (>= 4.0.829)
- Soenneker.Reflection.Cache (>= 4.0.665)
- Soenneker.Utils.Json (>= 4.0.2654)
- Soenneker.Utils.RegexCollection (>= 4.0.93)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Soenneker.Utils.String:
| Package | Downloads |
|---|---|
|
Soenneker.Validators.Email.Disposable.Online
A validation module checking for disposable email addresses via online sources |
|
|
Soenneker.Validators.Email.Disposable
A validation module checking if a given email's domain is disposable/temporary, updated daily (if available) |
|
|
Soenneker.Validators.Email.Mx
A validation module checking for the existence of domain MX records |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.3152 | 0 | 8/30/2026 |
| 4.0.3150 | 0 | 8/30/2026 |
| 4.0.3148 | 0 | 8/30/2026 |
| 4.0.3146 | 37 | 8/30/2026 |
| 4.0.3144 | 36 | 8/30/2026 |
| 4.0.3142 | 43 | 8/30/2026 |
| 4.0.3141 | 93 | 8/29/2026 |
| 4.0.3139 | 36 | 8/29/2026 |
| 4.0.3138 | 93 | 8/29/2026 |
| 4.0.3137 | 113 | 8/27/2026 |
| 4.0.3136 | 82 | 8/26/2026 |
| 4.0.3135 | 91 | 8/26/2026 |
| 4.0.3134 | 106 | 8/26/2026 |
| 4.0.3133 | 69 | 8/26/2026 |
| 4.0.3132 | 53 | 8/26/2026 |
| 4.0.3130 | 98 | 8/25/2026 |
| 4.0.3129 | 316 | 8/22/2026 |
| 4.0.3128 | 136 | 8/22/2026 |
| 4.0.3127 | 94 | 8/22/2026 |
| 4.0.3126 | 207 | 8/21/2026 |
Loading failed
Update dependency Soenneker.Extensions.NameValueCollection to 4.0.827 (#3869)