Soenneker.Extensions.String
2.1.232
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 2.1.232
NuGet\Install-Package Soenneker.Extensions.String -Version 2.1.232
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="2.1.232" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Extensions.String" Version="2.1.232" />
<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 2.1.232
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Soenneker.Extensions.String, 2.1.232"
#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@2.1.232
#: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=2.1.232
#tool nuget:?package=Soenneker.Extensions.String&version=2.1.232
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 | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. 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.
-
net8.0
- Soenneker.Extensions.ByteArray (>= 2.1.39)
- Soenneker.Extensions.Char (>= 2.1.21)
- Soenneker.Extensions.Stream (>= 2.1.39)
- Soenneker.Extensions.Task (>= 2.1.62)
- Soenneker.Utils.Random (>= 2.1.44)
- Soenneker.Utils.RegexCollection (>= 2.1.42)
NuGet packages (61)
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.Json
A utility library handling (de)serialization and other useful JSON functionalities |
|
|
Soenneker.Utils.Runtime
A collection of helpful runtime-based operations |
|
|
Soenneker.Extensions.Enumerable.String
A collection of helpful enumerable string extension methods |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.664 | 22,458 | 3/19/2026 |
| 4.0.663 | 9,880 | 3/19/2026 |
| 4.0.662 | 1,555 | 3/19/2026 |
| 4.0.661 | 22,834 | 3/15/2026 |
| 4.0.660 | 24,201 | 3/13/2026 |
| 4.0.659 | 9,496 | 3/13/2026 |
| 4.0.658 | 10,590 | 3/13/2026 |
| 4.0.657 | 3,977 | 3/13/2026 |
| 4.0.656 | 115 | 3/13/2026 |
| 4.0.655 | 1,179 | 3/12/2026 |
| 4.0.653 | 527 | 3/12/2026 |
| 4.0.651 | 1,670 | 3/12/2026 |
| 4.0.649 | 826 | 3/12/2026 |
| 4.0.647 | 580 | 3/12/2026 |
| 4.0.646 | 2,328 | 3/12/2026 |
| 4.0.645 | 4,322 | 3/12/2026 |
| 4.0.644 | 111 | 3/12/2026 |
| 4.0.643 | 1,759 | 3/12/2026 |
| 4.0.642 | 84 | 3/12/2026 |
| 2.1.232 | 264 | 9/17/2024 |
Loading failed