Example of stringbuilder append operation in C#

void demoAppendSB()
{
StringBuilder sb;
sb = new StringBuilder("This is the existing text");
sb.Append("This will be appended");
Console.WriteLine("sb.Append(\"Appended\"): {0}",sb);
}

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.