S
Soulless
I am trying to implement the stringbuilder class by taking a LARGE
multiline text box and looping through the lines and build a string
and include \r\n in it.
I get : Index was outside the bounds of the array.
The code is simply:
StringBuilder str = new StringBuilder();
for (int counter = 0; counter <= tempArray.Length; counter++)
{
str.Append(tempArray[counter] + @"\r\n");
}
Is there a size limit on the size of my stringbuilder object?
multiline text box and looping through the lines and build a string
and include \r\n in it.
I get : Index was outside the bounds of the array.
The code is simply:
StringBuilder str = new StringBuilder();
for (int counter = 0; counter <= tempArray.Length; counter++)
{
str.Append(tempArray[counter] + @"\r\n");
}
Is there a size limit on the size of my stringbuilder object?