TJC.StringExtensions 0.1.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package TJC.StringExtensions --version 0.1.1
                    
NuGet\Install-Package TJC.StringExtensions -Version 0.1.1
                    
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="TJC.StringExtensions" Version="0.1.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TJC.StringExtensions" Version="0.1.1" />
                    
Directory.Packages.props
<PackageReference Include="TJC.StringExtensions" />
                    
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 TJC.StringExtensions --version 0.1.1
                    
#r "nuget: TJC.StringExtensions, 0.1.1"
                    
#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.
#addin nuget:?package=TJC.StringExtensions&version=0.1.1
                    
Install as a Cake Addin
#tool nuget:?package=TJC.StringExtensions&version=0.1.1
                    
Install as a Cake Tool

NuGet Version and Downloads count

Pluralize

string string.Pluralize(int number, string? pluralized = null)

  • Takes a string and pluralizes it based on the number provided.
var item = "apple";
var plural = item.Pluralize(2);
Console.WriteLine(plural); // apples

string IEnumerable<object>.Pluralize(string nonPluralized, string? pluralized = null)

  • Takes a collection of objects and pluralizes a string based on the number of objects in the collection.
// Multiple items in a collection results in a pluralized string
var itemsMultiple = new List<string> { "item1", "item2", "item3" };
var plural = itemsMultiple.Pluralize("item");
Console.WriteLine(plural); // items

// A single item in a collection results in a singular string
var itemsSingle = new List<string> { "item1" };
var singluar = itemsSingle.Pluralize("item");
Console.WriteLine(singluar); // item
Product 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

    • No dependencies.

NuGet packages (5)

Showing the top 5 NuGet packages that depend on TJC.StringExtensions:

Package Downloads
TJC.AssemblyExtensions

Extensions for the Assembly

TJC.TimeExtensions

DateTime & TimeSpan Extensions

TJC.Collection.Core

Collection of NuGet Packages

TJC.Logging

Logging

TJC.ConsoleApplication

Console Application Utilities

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.6.6 351 4/15/2025
0.6.5 1,458 12/3/2024
0.6.4 103 12/3/2024
0.6.3 975 11/15/2024
0.6.2 118 11/10/2024
0.6.1 809 11/5/2024
0.6.0 106 11/5/2024
0.5.2 685 10/26/2024
0.5.1 1,589 10/26/2024
0.5.0 107 10/25/2024
0.4.3 101 10/25/2024
0.4.2 157 10/25/2024
0.3.0 264 10/20/2024
0.2.2 473 10/20/2024
0.2.1 414 10/16/2024
0.2.0 4,364 10/10/2024
0.1.10 1,095 9/29/2024
0.1.9 1,193 9/5/2024
0.1.8 298 9/5/2024
0.1.7 486 9/5/2024
0.1.6 280 9/4/2024
0.1.5 140 9/3/2024
0.1.4 387 8/22/2024
0.1.3 157 8/22/2024
0.1.2 206 7/26/2024
0.1.1 135 7/24/2024
0.1.0 482 7/22/2024