Search code examples
c#stringbuilder

How to append two stringBuilders?


Is there a way to append two string builders? And if so - does it perform better than appending a string to a StringBuilder ?


Solution

  • Just like that....

    StringBuilder sb = new StringBuilder();
    StringBuilder sb1 = new StringBuilder();
    sb.Append(sb1.ToString());