Ordinalize extensions
public static class OrdinalizeExtensionsInheritance System.Object → OrdinalizeExtensions
Ordinalization accepts integral values only. Callers with fractional values must choose and apply an explicit rounding and conversion policy before ordinalizing.
Turns a number into an ordinal number used to denote the position in an ordered sequence such as 1st, 2nd, 3rd, 4th.
public static string Ordinalize(this int number);number System.Int32
The number to be ordinalized
Turns a number into an ordinal number used to denote the position in an ordered sequence such as 1st, 2nd, 3rd, 4th. Gender for Brazilian Portuguese locale 1.Ordinalize(GrammaticalGender.Masculine) -> "1º" 1.Ordinalize(GrammaticalGender.Feminine) -> "1ª"
public static string Ordinalize(this int number, Humanizer.GrammaticalGender gender);number System.Int32
The number to be ordinalized
gender GrammaticalGender
The grammatical gender to use for output words
Turns a number into an ordinal number used to denote the position in an ordered sequence supporting specific locale's variations using the grammatical gender provided
public static string Ordinalize(this int number, Humanizer.GrammaticalGender gender, Humanizer.WordForm wordForm);number System.Int32
The number to be ordinalized
gender GrammaticalGender
The grammatical gender to use for output words
wordForm WordForm
Form of the word, i.e. abbreviation
System.String
The number ordinalized
In Spanish:
1.Ordinalize(GrammaticalGender.Masculine, WordForm.Abbreviation) -> 1.er // As in "Vivo en el 1.er piso"
1.Ordinalize(GrammaticalGender.Masculine, WordForm.Normal) -> 1.º // As in "Fui el 1º de mi promoción"
1.Ordinalize(GrammaticalGender.Feminine, WordForm.Normal) -> 1.ª // As in "Es 1ª vez que hago esto"Turns a number into an ordinal number used to denote the position in an ordered sequence such as 1st, 2nd, 3rd, 4th. Gender for Brazilian Portuguese locale 1.Ordinalize(GrammaticalGender.Masculine) -> "1º" 1.Ordinalize(GrammaticalGender.Feminine) -> "1ª"
public static string Ordinalize(this int number, Humanizer.GrammaticalGender gender, System.Globalization.CultureInfo? culture);number System.Int32
The number to be ordinalized
gender GrammaticalGender
The grammatical gender to use for output words
culture System.Globalization.CultureInfo
Culture to use. If null, current thread's culture is used.
Turns a number into an ordinal number used to denote the position in an ordered sequence supporting specific locale's variations using the grammatical gender provided
public static string Ordinalize(this int number, Humanizer.GrammaticalGender gender, System.Globalization.CultureInfo? culture, Humanizer.WordForm wordForm);number System.Int32
The number to be ordinalized
gender GrammaticalGender
The grammatical gender to use for output words
culture System.Globalization.CultureInfo
Culture to use. If null, current thread's culture is used.
wordForm WordForm
Form of the word, i.e. abbreviation
System.String
The number ordinalized
In Spanish:
1.Ordinalize(GrammaticalGender.Masculine, new CultureInfo("es-ES"),WordForm.Abbreviation) -> 1.er // As in "Vivo en el 1.er piso"
1.Ordinalize(GrammaticalGender.Masculine, new CultureInfo("es-ES"), WordForm.Normal) -> 1.º // As in "Fui el 1º de mi promoción"
1.Ordinalize(GrammaticalGender.Feminine, new CultureInfo("es-ES"), WordForm.Normal) -> 1.º // As in "Fui el 1º de mi promoción"Turns a number into an ordinal number used to denote the position in an ordered sequence supporting specific locale's variations.
public static string Ordinalize(this int number, Humanizer.WordForm wordForm);number System.Int32
The number to be ordinalized
wordForm WordForm
Form of the word, i.e. abbreviation
System.String
The number ordinalized
In Spanish:
1.Ordinalize(WordForm.Abbreviation) -> 1.er // As in "Vivo en el 1.er piso"
1.Ordinalize(WordForm.Normal) -> 1.º // As in "Fui el 1º de mi promoción"Turns a number into an ordinal number used to denote the position in an ordered sequence such as 1st, 2nd, 3rd, 4th.
public static string Ordinalize(this int number, System.Globalization.CultureInfo? culture);number System.Int32
The number to be ordinalized
culture System.Globalization.CultureInfo
Culture to use. If null, current thread's culture is used.
Turns a number into an ordinal number used to denote the position in an ordered sequence supporting specific locale's variations.
public static string Ordinalize(this int number, System.Globalization.CultureInfo? culture, Humanizer.WordForm wordForm);number System.Int32
The number to be ordinalized
culture System.Globalization.CultureInfo
Culture to use. If null, current thread's culture is used.
wordForm WordForm
Form of the word, i.e. abbreviation
System.String
The number ordinalized
In Spanish:
1.Ordinalize(new CultureInfo("es-ES"),WordForm.Abbreviation) -> 1.er // As in "Vivo en el 1.er piso"
1.Ordinalize(new CultureInfo("es-ES"), WordForm.Normal) -> 1.º // As in "Fui el 1º de mi promoción"Turns a number into an ordinal number used to denote the position in an ordered sequence such as 1st, 2nd, 3rd, 4th.
public static string Ordinalize(this long number);number System.Int64
The number to be ordinalized
Turns a number into an ordinal number used to denote the position in an ordered sequence using the provided grammatical gender.
public static string Ordinalize(this long number, Humanizer.GrammaticalGender gender);number System.Int64
The number to be ordinalized
gender GrammaticalGender
The grammatical gender to use for output words
Turns a number into an ordinal number used to denote the position in an ordered sequence supporting specific locale's variations using the grammatical gender provided.
public static string Ordinalize(this long number, Humanizer.GrammaticalGender gender, Humanizer.WordForm wordForm);number System.Int64
The number to be ordinalized
gender GrammaticalGender
The grammatical gender to use for output words
wordForm WordForm
Form of the word, i.e. abbreviation
System.String
The number ordinalized
Turns a number into an ordinal number used to denote the position in an ordered sequence using the provided grammatical gender.
public static string Ordinalize(this long number, Humanizer.GrammaticalGender gender, System.Globalization.CultureInfo? culture);number System.Int64
The number to be ordinalized
gender GrammaticalGender
The grammatical gender to use for output words
culture System.Globalization.CultureInfo
Culture to use. If null, current thread's culture is used.
Turns a number into an ordinal number used to denote the position in an ordered sequence supporting specific locale's variations using the grammatical gender provided.
public static string Ordinalize(this long number, Humanizer.GrammaticalGender gender, System.Globalization.CultureInfo? culture, Humanizer.WordForm wordForm);number System.Int64
The number to be ordinalized
gender GrammaticalGender
The grammatical gender to use for output words
culture System.Globalization.CultureInfo
Culture to use. If null, current thread's culture is used.
wordForm WordForm
Form of the word, i.e. abbreviation
System.String
The number ordinalized
Turns a number into an ordinal number used to denote the position in an ordered sequence supporting specific locale's variations.
public static string Ordinalize(this long number, Humanizer.WordForm wordForm);number System.Int64
The number to be ordinalized
wordForm WordForm
Form of the word, i.e. abbreviation
System.String
The number ordinalized
Turns a number into an ordinal number used to denote the position in an ordered sequence such as 1st, 2nd, 3rd, 4th.
public static string Ordinalize(this long number, System.Globalization.CultureInfo? culture);number System.Int64
The number to be ordinalized
culture System.Globalization.CultureInfo
Culture to use. If null, current thread's culture is used.
Turns a number into an ordinal number used to denote the position in an ordered sequence supporting specific locale's variations.
public static string Ordinalize(this long number, System.Globalization.CultureInfo? culture, Humanizer.WordForm wordForm);number System.Int64
The number to be ordinalized
culture System.Globalization.CultureInfo
Culture to use. If null, current thread's culture is used.
wordForm WordForm
Form of the word, i.e. abbreviation
System.String
The number ordinalized
Turns a number into an ordinal string used to denote the position in an ordered sequence such as 1st, 2nd, 3rd, 4th.
public static string Ordinalize(this string numberString);numberString System.String
The number, in string, to be ordinalized
Turns a number into an ordinal string used to denote the position in an ordered sequence such as 1st, 2nd, 3rd, 4th. Gender for Brazilian Portuguese locale "1".Ordinalize(GrammaticalGender.Masculine) -> "1º" "1".Ordinalize(GrammaticalGender.Feminine) -> "1ª"
public static string Ordinalize(this string numberString, Humanizer.GrammaticalGender gender);numberString System.String
The number, in string, to be ordinalized
gender GrammaticalGender
The grammatical gender to use for output words
Turns a number into an ordinal number used to denote the position in an ordered sequence supporting specific locale's variations using the grammatical gender provided
public static string Ordinalize(this string numberString, Humanizer.GrammaticalGender gender, Humanizer.WordForm wordForm);numberString System.String
The number to be ordinalized
gender GrammaticalGender
The grammatical gender to use for output words
wordForm WordForm
Form of the word, i.e. abbreviation
System.String
The number ordinalized
In Spanish:
"1".Ordinalize(GrammaticalGender.Masculine, WordForm.Abbreviation) -> 1.er // As in "Vivo en el 1.er piso"
"1".Ordinalize(GrammaticalGender.Masculine, WordForm.Normal) -> 1.º // As in "Fui el 1º de mi promoción"
"1".Ordinalize(GrammaticalGender.Feminine, WordForm.Normal) -> 1.ª // As in "Es 1ª vez que hago esto"Turns a number into an ordinal string used to denote the position in an ordered sequence such as 1st, 2nd, 3rd, 4th. Gender for Brazilian Portuguese locale "1".Ordinalize(GrammaticalGender.Masculine) -> "1º" "1".Ordinalize(GrammaticalGender.Feminine) -> "1ª"
public static string Ordinalize(this string numberString, Humanizer.GrammaticalGender gender, System.Globalization.CultureInfo? culture);numberString System.String
The number, in string, to be ordinalized
gender GrammaticalGender
The grammatical gender to use for output words
culture System.Globalization.CultureInfo
Culture to use. If null, current thread's culture is used.
Turns a number into an ordinal number used to denote the position in an ordered sequence supporting specific locale's variations using the grammatical gender provided
public static string Ordinalize(this string numberString, Humanizer.GrammaticalGender gender, System.Globalization.CultureInfo? culture, Humanizer.WordForm wordForm);numberString System.String
The number to be ordinalized
gender GrammaticalGender
The grammatical gender to use for output words
culture System.Globalization.CultureInfo
Culture to use. If null, current thread's culture is used.
wordForm WordForm
Form of the word, i.e. abbreviation
System.String
The number ordinalized
In Spanish:
"1".Ordinalize(GrammaticalGender.Masculine, new CultureInfo("es-ES"),WordForm.Abbreviation) -> 1.er // As in "Vivo en el 1.er piso"
"1".Ordinalize(GrammaticalGender.Masculine, new CultureInfo("es-ES"), WordForm.Normal) -> 1.º // As in "Fui el 1º de mi promoción"
"1".Ordinalize(GrammaticalGender.Feminine, new CultureInfo("es-ES"), WordForm.Normal) -> 1.º // As in "Fui el 1º de mi promoción"Turns a number into an ordinal number used to denote the position in an ordered sequence supporting specific locale's variations.
public static string Ordinalize(this string numberString, Humanizer.WordForm wordForm);numberString System.String
The number, in string, to be ordinalized
wordForm WordForm
Form of the word, i.e. abbreviation
System.String
The number ordinalized
In Spanish:
"1".Ordinalize(WordForm.Abbreviation) -> 1.er // As in "Vivo en el 1.er piso"
"1".Ordinalize(WordForm.Normal) -> 1.º // As in "Fui el 1º de mi promoción"Turns a number into an ordinal string used to denote the position in an ordered sequence such as 1st, 2nd, 3rd, 4th.
public static string Ordinalize(this string numberString, System.Globalization.CultureInfo? culture);numberString System.String
The number, in string, to be ordinalized
culture System.Globalization.CultureInfo
Culture to use. If null, current thread's culture is used.
Turns a number into an ordinal number used to denote the position in an ordered sequence supporting specific locale's variations.
public static string Ordinalize(this string numberString, System.Globalization.CultureInfo? culture, Humanizer.WordForm wordForm);numberString System.String
The number to be ordinalized
culture System.Globalization.CultureInfo
Culture to use. If null, current thread's culture is used.
wordForm WordForm
Form of the word, i.e. abbreviation
System.String
The number ordinalized
In Spanish:
"1".Ordinalize(new CultureInfo("es-ES"),WordForm.Abbreviation) -> 1.er // As in "Vivo en el 1.er piso"
"1".Ordinalize(new CultureInfo("es-ES"), WordForm.Normal) -> 1.º // As in "Fui el 1º de mi promoción"