System.IntExtensions.GetCommentsText C# (CSharp) Метод

GetCommentsText() публичный статический метод

public static GetCommentsText ( this @this ) : string
@this this
Результат string
        public static string GetCommentsText(this int @this)
        {
            var regex = new Regex("[234]$");
             var regexTenths = new Regex("(12)|(13)|(14)$");
             var count = @this.ToString(CultureInfo.InvariantCulture);

            if (@this == 1)
            {
                return "komentarz";
            }

            if (regex.IsMatch(count) && regexTenths.IsMatch(count) == false)
            {
                return "komentarze";
            }

             return "komentarzy";
        }