Humanizer.Localisation.Ordinalizers.IOrdinalizer
IOrdinalizer Interface
The interface used to localise the Ordinalize method
public interface IOrdinalizer
Methods
IOrdinalizer.Convert(int, string) Method
Ordinalizes the number
string Convert(int number, string numberString);
Parameters
number System.Int32
numberString System.String
Returns
IOrdinalizer.Convert(int, string, GrammaticalGender) Method
Ordinalizes the number using the provided grammatical gender
string Convert(int number, string numberString, Humanizer.GrammaticalGender gender);
Parameters
number System.Int32
numberString System.String
gender GrammaticalGender
Returns
IOrdinalizer.Convert(int, string, GrammaticalGender, WordForm) Method
Ordinalizes the number to a locale's specific form using the provided grammatical gender.
string Convert(int number, string numberString, Humanizer.GrammaticalGender gender, Humanizer.WordForm wordForm);
Parameters
number System.Int32
numberString System.String
gender GrammaticalGender
wordForm WordForm
Returns
IOrdinalizer.Convert(int, string, WordForm) Method
Ordinalizes the number to a locale's specific form.
string Convert(int number, string numberString, Humanizer.WordForm wordForm);
Parameters
number System.Int32
numberString System.String
wordForm WordForm