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

GetPluralRaw() public static method

@Alias ___s (3 underscores and s) and FormatRawPlural

Translates the given singular or plural text/html applying string.Format(count == 1 ? singular : plural, 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 GetPluralRaw ( this culture, string singular, string plural, int count, string>.Func escapeArgumentFunc ) : System.Web.Mvc.MvcHtmlString
culture this The culture being extended
singular string The text/HTML to be translated when count is 1
plural string The text/HTML to be translated when count is NOT 1
count int If count is 1 the singular text/HTML will be used, otherwise the plural text
escapeArgumentFunc string>.Func The func to be applied for each argument .i.e. a => HttpUtility.HtmlAttributeEncode(a)
return System.Web.Mvc.MvcHtmlString
        public static MvcHtmlString GetPluralRaw(this CultureInfo culture, string singular, string plural, int count, Func<object, string> escapeArgumentFunc, params object[] arguments)
        {
            return __s(culture, singular, plural, count, escapeArgumentFunc, arguments);
        }

Same methods

I18N::GetPluralRaw ( this culture, string singularHTML, string pluralHTML, int count ) : System.Web.Mvc.MvcHtmlString