Default capacity of StringBuilder

后端 未结 8 1315
野性不改
野性不改 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:24

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

提交回复
热议问题