SystemExt/Extensions/System.String.cs
/// <summary>
/// Create a new <see cref="string"/> which is <paramref name="self"/> repeated
/// <paramref name="times"/> times.
/// </summary>
/// <param name="self">
/// An instance of the <see cref="string"/> class.
/// </param>
/// <param name="times">
/// The number of times to repeat <see cref="times"/>.
/// </param>
/// <returns>
/// <paramref name="self"/> repeated <paramref name="times"/> times.
/// </returns>
Create a new  which is  repeated
times.
Create a new which is repeated times .
public static string Repeat(this string self, uint times)
        {
            var builder = new StringBuilder();
            for (var i = 0; i < times; i++)
                builder.Append(self);
            return builder.ToString();
        }
public static string Repeat ( this string self , uint times ) { var builder = new StringBuilder ( ) ; for ( var i = 0 ; i < times ; i ++ ) builder . Append ( self ) ; return builder . ToString ( ) ; }
Create a new  which is  repeated
times.
Create a new which is repeated times .
None
string
this
times
uint
The number of times to repeat .
The number of times to repeat .
self
An instance of the  class.
An instance of the class .