Default capacity of StringBuilder

Matt Lacey picture Matt Lacey · Oct 29, 2008 · Viewed 31.1k times · Source

What is the default capacity of a StringBuilder?

And when should (or shouldn't) the default be used?

Answer

Alan picture Alan · Oct 29, 2008

The default capacity of StringBuilder is 16 characters (I used .NET Reflector to find out).