Soenneker.Utils.String 4.0.3152

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Utils.String --version 4.0.3152
                    
NuGet\Install-Package Soenneker.Utils.String -Version 4.0.3152
                    
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.3152" />
                    
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.3152" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Utils.String" />
                    
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.Utils.String --version 4.0.3152
                    
#r "nuget: Soenneker.Utils.String, 4.0.3152"
                    
#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.3152
                    
#: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.3152
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Utils.String&version=4.0.3152
                    
Install 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

alternate text is missing from this package README image 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 to T through JSON; returns null and 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 into T; malformed Base64 or JSON throws, and pooled temporary storage is returned after use.
Product 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.

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

Checks whether an email address uses a disposable or temporary domain.

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.3174 31 9/2/2026
4.0.3173 41 9/2/2026
4.0.3172 62 9/1/2026
4.0.3171 61 9/1/2026
4.0.3170 117 9/1/2026
4.0.3169 91 9/1/2026
4.0.3168 121 8/31/2026
4.0.3166 78 8/31/2026
4.0.3165 119 8/31/2026
4.0.3164 84 8/31/2026
4.0.3163 87 8/31/2026
4.0.3162 150 8/31/2026
4.0.3161 71 8/31/2026
4.0.3160 81 8/31/2026
4.0.3158 120 8/31/2026
4.0.3156 80 8/31/2026
4.0.3155 148 8/30/2026
4.0.3154 102 8/30/2026
4.0.3152 213 8/30/2026
4.0.3150 78 8/30/2026
Loading failed

Update dependency Soenneker.Reflection.Cache to 4.0.666 (#3873)