System.Globalization.I18N.FormatPlural C# (CSharp) Method

FormatPlural() public static method

@Alias _ (1 underscore) and GetPluralString

Translates the given singular or plural text applying string.Format(text, arguments) to the current culture language.

The singular/plural text and argument values will be HTML Encoded when used in ASP.NET MVC

public static FormatPlural ( this culture, string singular, string plural, int count ) : string
culture this The culture being extended
singular string The text to be translated when count is 1
plural string The text to be translated when count is NOT 1
count int If count is 1 the singular text will be used, otherwise the plural text
return string
        public static string FormatPlural(this CultureInfo culture, string singular, string plural, int count, params object[] arguments)
        {
            return _s(culture, singular, plural, count, arguments);
        }