Strings In Depth14 / 18
Up next

StringBuilder

using System.Text;

// StringBuilder mutates one buffer instead of copying
var sb = new StringBuilder();
sb.Append("ru");
sb.Append('s');
sb.Append('t');
Console.WriteLine(sb.ToString());
What you're solving

build text without new allocations each step