Hi friends,
I want to know that what's the advantage of using System.Text.StringBuilder over System.String?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh TrivediPosted Feb 12, 2012, 11:20 PM
string is immutable and you allocate new memory each time you append strings.
StringBuilder allows you to add characters to an object and when you need to use the string representation, you call ToString() on it.
please refer.
http://www.codeproject.com/Articles/6771/String-Vs-StringBuilder-C
http://msdn.microsoft.com/en-us/library/2839d5h5
hopr this help.
VulpesPosted Feb 12, 2012, 7:37 AM