diff --git a/src/Humanizer/Localisation/NumberToWords/AfrikaansNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/AfrikaansNumberToWordsConverter.cs index 836d4ed55..293f96b35 100644 --- a/src/Humanizer/Localisation/NumberToWords/AfrikaansNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/AfrikaansNumberToWordsConverter.cs @@ -21,7 +21,7 @@ internal class AfrikaansNumberToWordsConverter : GenderlessNumberToWordsConverte public override string Convert(long number) { - if (number > Int32.MaxValue || number < Int32.MinValue) + if (number > int.MaxValue || number < int.MinValue) { throw new NotImplementedException(); } diff --git a/src/Humanizer/Localisation/NumberToWords/AzerbaijaniNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/AzerbaijaniNumberToWordsConverter.cs index bfdaf6504..25edd34d6 100644 --- a/src/Humanizer/Localisation/NumberToWords/AzerbaijaniNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/AzerbaijaniNumberToWordsConverter.cs @@ -20,7 +20,7 @@ internal class AzerbaijaniNumberToWordsConverter : GenderlessNumberToWordsConver public override string Convert(long input) { - if (input > Int32.MaxValue || input < Int32.MinValue) + if (input > int.MaxValue || input < int.MinValue) { throw new NotImplementedException(); } diff --git a/src/Humanizer/Localisation/NumberToWords/BanglaNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/BanglaNumberToWordsConverter.cs index 2c391d819..3974c1c47 100644 --- a/src/Humanizer/Localisation/NumberToWords/BanglaNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/BanglaNumberToWordsConverter.cs @@ -59,7 +59,7 @@ public override string ConvertToOrdinal(int number) public override string Convert(long input) { - if (input > Int32.MaxValue || input < Int32.MinValue) + if (input > int.MaxValue || input < int.MinValue) { throw new NotImplementedException(); } diff --git a/src/Humanizer/Localisation/NumberToWords/BulgarianNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/BulgarianNumberToWordsConverter.cs index 3b33459df..209639fe0 100644 --- a/src/Humanizer/Localisation/NumberToWords/BulgarianNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/BulgarianNumberToWordsConverter.cs @@ -23,7 +23,7 @@ internal class BulgarianNumberToWordsConverter : GenderedNumberToWordsConverter private static readonly string[] HundredsOrdinalMap = { - String.Empty, "стот", "двест", "трист", "четиристот", "петстот", "шестстот", "седемстот", "осемстот", + string.Empty, "стот", "двест", "трист", "четиристот", "петстот", "шестстот", "седемстот", "осемстот", "деветстот" }; diff --git a/src/Humanizer/Localisation/NumberToWords/CroatianNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/CroatianNumberToWordsConverter.cs index a9b26116f..d9fab3db4 100644 --- a/src/Humanizer/Localisation/NumberToWords/CroatianNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/CroatianNumberToWordsConverter.cs @@ -16,7 +16,7 @@ public CroatianNumberToWordsConverter(CultureInfo culture) public override string Convert(long input) { - if (input > Int32.MaxValue || input < Int32.MinValue) + if (input > int.MaxValue || input < int.MinValue) { throw new NotImplementedException(); } diff --git a/src/Humanizer/Localisation/NumberToWords/FinnishNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/FinnishNumberToWordsConverter.cs index 211098f81..b5cfb598b 100644 --- a/src/Humanizer/Localisation/NumberToWords/FinnishNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/FinnishNumberToWordsConverter.cs @@ -13,7 +13,7 @@ internal class FinnishNumberToWordsConverter : GenderlessNumberToWordsConverter public override string Convert(long input) { - if (input > Int32.MaxValue || input < Int32.MinValue) + if (input > int.MaxValue || input < int.MinValue) { throw new NotImplementedException(); } diff --git a/src/Humanizer/Localisation/NumberToWords/HebrewNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/HebrewNumberToWordsConverter.cs index a34a49752..b97bf4e29 100644 --- a/src/Humanizer/Localisation/NumberToWords/HebrewNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/HebrewNumberToWordsConverter.cs @@ -38,7 +38,7 @@ public HebrewNumberToWordsConverter(CultureInfo culture) public override string Convert(long input, GrammaticalGender gender, bool addAnd = true) { - if (input > Int32.MaxValue || input < Int32.MinValue) + if (input > int.MaxValue || input < int.MinValue) { throw new NotImplementedException(); } diff --git a/src/Humanizer/Localisation/NumberToWords/ItalianNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/ItalianNumberToWordsConverter.cs index 95092fbd6..a1a04a2f8 100644 --- a/src/Humanizer/Localisation/NumberToWords/ItalianNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/ItalianNumberToWordsConverter.cs @@ -6,7 +6,7 @@ internal class ItalianNumberToWordsConverter : GenderedNumberToWordsConverter { public override string Convert(long input, GrammaticalGender gender, bool addAnd = true) { - if (input > Int32.MaxValue || input < Int32.MinValue) + if (input > int.MaxValue || input < int.MinValue) { throw new NotImplementedException(); } diff --git a/src/Humanizer/Localisation/NumberToWords/MalteseNumberToWordsConvertor.cs b/src/Humanizer/Localisation/NumberToWords/MalteseNumberToWordsConvertor.cs index 79c6d4322..dd2a5f220 100644 --- a/src/Humanizer/Localisation/NumberToWords/MalteseNumberToWordsConvertor.cs +++ b/src/Humanizer/Localisation/NumberToWords/MalteseNumberToWordsConvertor.cs @@ -43,7 +43,7 @@ public override string Convert(long input, GrammaticalGender gender, bool addAnd if (input < 1000000000) { - return GetMillions(input, gender) + (negativeNumber ? " inqas minn żero" : String.Empty); + return GetMillions(input, gender) + (negativeNumber ? " inqas minn żero" : string.Empty); } var billions = input / 1000000000; @@ -58,7 +58,7 @@ public override string Convert(long input, GrammaticalGender gender, bool addAnd return billionsText; } - return $"{billionsText} u {millionsText}" + (negativeNumber ? " inqas minn żero" : String.Empty); + return $"{billionsText} u {millionsText}" + (negativeNumber ? " inqas minn żero" : string.Empty); } public override string ConvertToOrdinal(int number, GrammaticalGender gender) diff --git a/src/Humanizer/Localisation/NumberToWords/NorwegianBokmalNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/NorwegianBokmalNumberToWordsConverter.cs index fba71da3c..c9414a14d 100644 --- a/src/Humanizer/Localisation/NumberToWords/NorwegianBokmalNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/NorwegianBokmalNumberToWordsConverter.cs @@ -20,7 +20,7 @@ internal class NorwegianBokmalNumberToWordsConverter : GenderedNumberToWordsConv public override string Convert(long number, GrammaticalGender gender, bool addAnd = true) { - if (number > Int32.MaxValue || number < Int32.MinValue) + if (number > int.MaxValue || number < int.MinValue) { throw new NotImplementedException(); } diff --git a/src/Humanizer/Localisation/NumberToWords/RomanianNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/RomanianNumberToWordsConverter.cs index 4c98c1c7a..b50c34382 100644 --- a/src/Humanizer/Localisation/NumberToWords/RomanianNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/RomanianNumberToWordsConverter.cs @@ -6,7 +6,7 @@ internal class RomanianNumberToWordsConverter : GenderedNumberToWordsConverter { public override string Convert(long number, GrammaticalGender gender, bool addAnd = true) { - if (number > Int32.MaxValue || number < Int32.MinValue) + if (number > int.MaxValue || number < int.MinValue) { throw new NotImplementedException(); } diff --git a/src/Humanizer/Localisation/NumberToWords/SerbianCyrlNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/SerbianCyrlNumberToWordsConverter.cs index f14c735b2..fa254d7c6 100644 --- a/src/Humanizer/Localisation/NumberToWords/SerbianCyrlNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/SerbianCyrlNumberToWordsConverter.cs @@ -16,7 +16,7 @@ public SerbianCyrlNumberToWordsConverter(CultureInfo culture) public override string Convert(long input) { - if (input > Int32.MaxValue || input < Int32.MinValue) + if (input > int.MaxValue || input < int.MinValue) { throw new NotImplementedException(); } diff --git a/src/Humanizer/Localisation/NumberToWords/SerbianNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/SerbianNumberToWordsConverter.cs index 10949e22d..054bddffe 100644 --- a/src/Humanizer/Localisation/NumberToWords/SerbianNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/SerbianNumberToWordsConverter.cs @@ -16,7 +16,7 @@ public SerbianNumberToWordsConverter(CultureInfo culture) public override string Convert(long input) { - if (input > Int32.MaxValue || input < Int32.MinValue) + if (input > int.MaxValue || input < int.MinValue) { throw new NotImplementedException(); } diff --git a/src/Humanizer/Localisation/NumberToWords/SlovenianNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/SlovenianNumberToWordsConverter.cs index 76eaf62c6..bb907bf13 100644 --- a/src/Humanizer/Localisation/NumberToWords/SlovenianNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/SlovenianNumberToWordsConverter.cs @@ -16,7 +16,7 @@ public SlovenianNumberToWordsConverter(CultureInfo culture) public override string Convert(long input) { - if (input > Int32.MaxValue || input < Int32.MinValue) + if (input > int.MaxValue || input < int.MinValue) { throw new NotImplementedException(); } diff --git a/src/Humanizer/Localisation/NumberToWords/SwedishNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/SwedishNumberToWordsConverter.cs index 89f7b7b90..56fb439b2 100644 --- a/src/Humanizer/Localisation/NumberToWords/SwedishNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/SwedishNumberToWordsConverter.cs @@ -25,7 +25,7 @@ private class Fact public override string Convert(long input, GrammaticalGender gender, bool addAnd = true) { - if (input > Int32.MaxValue || input < Int32.MinValue) + if (input > int.MaxValue || input < int.MinValue) { throw new NotImplementedException(); } diff --git a/src/Humanizer/Localisation/NumberToWords/UzbekCyrlNumberToWordConverter.cs b/src/Humanizer/Localisation/NumberToWords/UzbekCyrlNumberToWordConverter.cs index cb67033f6..226f0de1d 100644 --- a/src/Humanizer/Localisation/NumberToWords/UzbekCyrlNumberToWordConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/UzbekCyrlNumberToWordConverter.cs @@ -11,7 +11,7 @@ internal class UzbekCyrlNumberToWordConverter : GenderlessNumberToWordsConverter public override string Convert(long input) { - if (input > Int32.MaxValue || input < Int32.MinValue) + if (input > int.MaxValue || input < int.MinValue) { throw new NotImplementedException(); } diff --git a/src/Humanizer/Localisation/NumberToWords/UzbekLatnNumberToWordConverter.cs b/src/Humanizer/Localisation/NumberToWords/UzbekLatnNumberToWordConverter.cs index de1c46002..a3c579e70 100644 --- a/src/Humanizer/Localisation/NumberToWords/UzbekLatnNumberToWordConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/UzbekLatnNumberToWordConverter.cs @@ -11,7 +11,7 @@ internal class UzbekLatnNumberToWordConverter : GenderlessNumberToWordsConverter public override string Convert(long input) { - if (input > Int32.MaxValue || input < Int32.MinValue) + if (input > int.MaxValue || input < int.MinValue) { throw new NotImplementedException(); }