C# Class TextHelper.Pluralizer

Afficher le fichier Open project: tylermercier/TextHelper

Méthodes publiques

Méthode Description
Pluralize ( this text, int count, string plural = null ) : string

Attempts to pluralize the singular word unless count is 1.

Method Details

Pluralize() public static méthode

Attempts to pluralize the singular word unless count is 1.
public static Pluralize ( this text, int count, string plural = null ) : string
text this
count int The number of things
plural string If plural is supplied, it will use that when count is > 1, otherwise it will add an 's' to the end
Résultat string