Possible Duplicate:
Can I “multiply” a string (in C#)?
Is there a simple way to display a String multiple times by using something like str * 2
?
In other words, is there a way to have:
int numTimes = 500;
String str = "\n";
String body = ""
for (int i = 0; i < numTimes; i++)
{
body = "Hello" + str;
}
Without needing the for loop?