Is there a function in C# that returns x times of a given char or string? Or must I code it myself?
string.Join("", Enumerable.Repeat("ab", 2));
Returns
"abab"
And
string.Join("", Enumerable.Repeat('a', 2))
"aa"