Simple c# StringBuilder example

A simple example of using the StringBuilder to concat strings.

StringBuilder mySB = new StringBuilder();
mySB.Append("line 1");
mySB.Append("line 2");
mySB.Append("line 3");
Console.WriteLine(mySB.ToString());

Leave a Reply