StringBuilder Insert(): insert strings into myStringBuilder
using System;
using System.Text;
class Test {
public static void Main() {
StringBuilder myStringBuilder = new StringBuilder("asdfasdfadsf");
myStringBuilder.Insert(6, "friends, ");
myStringBuilder.Insert(2, "Romans, ", 3);
Console.WriteLine("myStringBuilder = " + myStringBuilder);
}
}
Related examples in the same category