Hi
What's the difference between System.String and System.StringBuilder classes?
Difference between System.String and System.StringBuilder classes
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Shakuntala Gaur168 reputationPosted Jul 18, 2012, 1:59 AM EDT
System.String is immutable. System.StringBuilder was designed with the purpose of having a mutable string where a variety of operations can be performed. StringBuilder is more Efficient in cases where there is large amount of string manipulation are required.
Strings are Immutable, so each time a string is changed, a new instance in memory is created.
If my answer helps you out please select it accepted.
Cheers,
Kind regards,
Shakuntala
Satyapriya NayakRank #47 · 31.5K reputationPosted Jul 18, 2012, 2:02 AM EDT
System.String is immutable
System.StringBuilder was designed with the purpose of having a mutable string where a variety of operations can be performed.
Thanks