This article has been removed.
Here are some related articles:
Effective C#: Working with Strings
StringBuilder and String Concatenation
StringBuilder Class in C#
Join the conversation! Your thoughts help the community grow.
Join to leave a comment
Members earn 10 SHARP for a comment, 10 SHARP for a reaction, and 1,000 SHARP for every article they publish.
DevSocialUpcoming · 3rd editionAI Agents ConferenceNov 23–27, 2026Live onlineMembers only16days leftRegisterMembers onlyeBook · C#Modern CSharp Mastery - Advanced Guide for Experienced DevelopersDownload nowWrite an article and earn +1,000 SHARP when it is approved.
Write an article
SenthilkumarPosted Aug 9, 2009, 9:30 PM EDT
You should have compared stringbuilder with string. Both have one advantages. When we do many string insertion manipulations then we can use stringbuilder. Because its mutable. It will save memory location.The string is immutable and it will create a new memory for every insert operation. But when we do very small operation then String is best. Because StringBuilder will be allocated little bit large memory location for initially. With regards, Senthil "Happy Coding"