Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: string Repeat(this string, int)

Declaration

public static string Repeat(
    this string input,
    int numTimes
)

Summary

Concatenates the specified number of repetitions of the current string.

Parameters

this stringinput The string to be repeated.
intnumTimes The number of times to repeat the string.

Returns

A concatenated string containing the original string the specified number of times.