What is the StringBuilder class?
What is the StringBuilder class?
Rating:
The
The StringBuilder object creates a buffer when a new string of data is inserted, appended, or replaced. The new data is appended to the end of the buffer if enough space is available. If the original buffer cannot accommodate any large data, a new buffer is allocated that is much larger than the original one. When the new buffer is created, the old data is first copied to it from the original buffer and the new data is appended to its end. The performance of the StringBuilder object depends upon how frequently a memory is allocated. Memory is allocated only when the buffer becomes too small for the accommodation of new data.
Rating:
Other articles
- What is an interface?
- How to open the Console application?
- How to perform toggle outlining in a code?
- What is the IComparable interface?
- What is XmlDataDocument?
