Default capacity of StringBuilder

.net, c#, capacity, stringbuilder

Solution

The Venerable J. Skeet has provided a good analysis of precisely this problem:

https://jonskeet.uk/csharp/stringbuilder.html

Problem

What is the default capacity of a `StringBuilder`? And when should (or shouldn't) the default be used?

Original source