AvalonStudio.Languages.CSharp.IndentationReformatter.Repeat C# (CSharp) Method

Repeat() private static method

private static Repeat ( string text, int count ) : string
text string
count int
return string
        private static string Repeat(string text, int count)
        {
            if (count == 0)
                return string.Empty;
            if (count == 1)
                return text;
            var b = new StringBuilder(text.Length * count);
            for (var i = 0; i < count; i++)
                b.Append(text);
            return b.ToString();
        }