Repeat
Creates a new string by repeating the given string n times.
- Use
Enumerable.Repeat()to repeatsntimes,string.Concat()to convert the result to astring.
Creates a new string by repeating the given string n times.
Enumerable.Repeat() to repeat s n times, string.Concat() to convert the result to a string.