StringBuilder的默认容量容量、StringBuilder

2023-09-03 01:20:11 作者:月亮小饼干

什么是默认容量的StringBuilder

和何时应该(或不应该)默认使用?

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

推荐答案

最传统的J.飞碟双向提供了precisely这个问题的一个很好的分析:

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

http://www.yoda.arachsys.com/csharp/stringbuilder.html