Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • That's actually what I ended up doing. I was just wondering what the constructor actually does, if not allocate any memory? I understand that no characters are in, but why does there need to be any? Commented Jun 8, 2013 at 0:56
  • 2
    I suggest reading the source code to find out. I believe that the capacity is primarily used internally for performance (as the StringBuilder grows), but I'm not sure. Commented Jun 8, 2013 at 0:57