我已经读过,StringBuilder的内部实现在.NET4.0中发生了很大的变化:
StringBuilder growing over 85k and moving to LOH?
How does StringBuilder's capacity change?
在创建SB期间,这些更改对于指定容量的含义是什么? 这样做仍然有益吗?
Dim BigString As New System.Text.StringBuilder(500000)
For Each ...
BigString.Append("some text")
Next