Default capacity of StringBuilder

后端 未结 8 1344
野性不改
野性不改 2020-12-16 09:42

What is the default capacity of a StringBuilder?

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

8条回答
  •  情深已故
    2020-12-16 10:08

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

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

提交回复
热议问题