int repeatCount = 10;string value = "hello world.";string repeated = string.Join(value, new string[repeatCount + 1]);Console.WriteLine(repeated);
Wow! You're using the string as a separator to join empty strings. That's cool and twisted!
how about
string str = new string('?',99).Replace("?","foo")
ugly, but it works