Soenneker.Extensions.String
3.0.282
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.Extensions.String --version 3.0.282
NuGet\Install-Package Soenneker.Extensions.String -Version 3.0.282
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.String" Version="3.0.282" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Extensions.String" Version="3.0.282" />
<PackageReference Include="Soenneker.Extensions.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.Extensions.String --version 3.0.282
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Soenneker.Extensions.String, 3.0.282"
#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.Extensions.String@3.0.282
#: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.Extensions.String&version=3.0.282
#tool nuget:?package=Soenneker.Extensions.String&version=3.0.282
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Soenneker.Extensions.String
A collection of useful string extension methods
Installation
dotnet add package Soenneker.Extensions.String
Usage
Truncate()
string longString = "This is a long string that needs to be truncated";
string truncatedString = longString.Truncate(10);
// truncatedString = "This is a ..."
IsAlphaNumeric()
string alphanumeric = "abc123";
bool isAlphanumeric = alphanumeric.IsAlphaNumeric();
// isAlphanumeric = true
string nonAlphanumeric = "abc123!";
bool isNonAlphanumeric = nonAlphanumeric.IsAlphaNumeric();
// isNonAlphanumeric = false
Slugify()
string test = "this string&is%bad#for\\urls"
test.Slugify() // "this-string-is-bad-for-urls"
ToDouble()
string numericString = "3.14";
double? doubleValue = numericString.ToDouble();
// doubleValue = 3.14
string nonNumericString = "abc";
double? nonDoubleValue = nonNumericString.ToDouble();
// nonDoubleValue = null
RemoveNonDigits()
string stringWithNonDigits = "abc123xyz456";
string digitsOnly = stringWithNonDigits.RemoveNonDigits();
// digitsOnly = "123456"
Shuffle()
string originalString = "hello";
string shuffledString = originalString.Shuffle();
// shuffledString = "olhel"
... and more
| Product | Versions 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. net10.0 was computed. 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.
-
net9.0
- Soenneker.Extensions.Arrays.Bytes (>= 3.0.3)
- Soenneker.Extensions.Char (>= 3.0.28)
- Soenneker.Extensions.Stream (>= 3.0.45)
- Soenneker.Extensions.Task (>= 3.0.69)
- Soenneker.Utils.Random (>= 3.0.51)
- Soenneker.Utils.RegexCollection (>= 3.0.51)
NuGet packages (59)
Showing the top 5 NuGet packages that depend on Soenneker.Extensions.String:
| Package | Downloads |
|---|---|
|
Soenneker.Extensions.Configuration
A collection of helpful IConfiguration extension methods |
|
|
Soenneker.Utils.MemoryStream
An easy modern MemoryStream utility |
|
|
Soenneker.Utils.Runtime
A collection of helpful runtime-based operations |
|
|
Soenneker.Extensions.Enumerable.String
A collection of helpful enumerable string extension methods |
|
|
Soenneker.Documents.Document
The base document type providing a building block for storage objects |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.723 | 14,249 | 8/26/2026 |
| 4.0.722 | 9,824 | 8/25/2026 |
| 4.0.721 | 207 | 8/25/2026 |
| 4.0.720 | 5,151 | 8/25/2026 |
| 4.0.719 | 37,902 | 8/21/2026 |
| 4.0.718 | 51,538 | 8/18/2026 |
| 4.0.717 | 12,477 | 8/18/2026 |
| 4.0.716 | 54,482 | 8/11/2026 |
| 4.0.715 | 81,982 | 8/8/2026 |
| 4.0.714 | 44,590 | 8/7/2026 |
| 4.0.713 | 52,314 | 7/29/2026 |
| 4.0.712 | 38,145 | 7/28/2026 |
| 4.0.711 | 21,734 | 7/28/2026 |
| 4.0.710 | 1,162 | 7/28/2026 |
| 4.0.708 | 12,815 | 7/28/2026 |
| 4.0.707 | 12,264 | 7/27/2026 |
| 4.0.706 | 15,783 | 7/27/2026 |
| 4.0.705 | 163,826 | 7/17/2026 |
| 4.0.703 | 38,346 | 7/16/2026 |
| 3.0.282 | 401 | 12/4/2024 |
Loading failed