Inserting string in a String Builder at mid position
usingSystem;
usingSystem.Text;
namespaceforgetCode
{
classprogram
{
publicstaticvoidMain()
{
StringBuilder sb1 = new StringBuilder("Time is gold");
sb1.Insert(8, "nice and it is ");
Console.WriteLine(sb1);
}
}
}
Output:
Time is nice and it is gold
Tags for Inserting string in a String Builder at mid position in C#