I\'d like to repeat a set of characters multiple times. I know how to do it with a single character:
string line = new string(\'x\', 10);
string line = new String('x', 10).Replace("x", "-.");
var result = String.Join("", Enumerable.Repeat("-.", 10));
A slight variation on the answer by Bala R
var s = String.Concat(Enumerable.Repeat("-.", 10));