Skip to main content
Version: 3.0.8

Humanizer.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

System.String

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

System.String

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

System.String

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

Returns

System.String