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

FormatRawPlural() public static method

@Alias ___s (3 underscores and s) and GetPluralRaw

Translates the given singular or plural HTML applying string.Format(html, arguments.Select(a => escapeArgumentFunc(a))) to the current culture language.

For each argument the escape func will be called before applying the format

public static FormatRawPlural ( this culture, string singularHTML, string pluralHTML, int count ) : System.Web.Mvc.MvcHtmlString
culture this The culture being extended
singularHTML string The HTML to be translated when count is 1
pluralHTML string The HTML to be translated when count is NOT 1
count int If count is 1 the singular HTML will be used, otherwise the plural HTML
return System.Web.Mvc.MvcHtmlString
        public static MvcHtmlString FormatRawPlural(this CultureInfo culture, string singularHTML, string pluralHTML, int count, params object[] htmlArguments)
        {
            return __s(culture, singularHTML, pluralHTML, count, htmlArguments);
        }

Same methods

I18N::FormatRawPlural ( this culture, string singular, string plural, int count, string>.Func escapeArgumentFunc ) : System.Web.Mvc.MvcHtmlString