Connecting Tech Pros Worldwide Help | Site Map

String vs StringBuilder

Chizl
Guest
 
Posts: n/a
#1: Feb 3 '08
Can someone give me a little more detail on why use StringBuilder vs String?

--
/*Chizl*/


Jon Skeet [C# MVP]
Guest
 
Posts: n/a
#2: Feb 4 '08

re: String vs StringBuilder


On Feb 4, 4:02 pm, "Ben Voigt [C++ MVP]" <r...@nospam.nospamwrote:

<snip>
Quote:
Everything else that was written is correct. StringBuilders should be used
when modifying a string repeatedly.
Unless the intermediate values are required as strings, in which case
you don't gain anything.
(This is reasonably rare, but worth mentioning.)

I thought I'd posted this link before, but apparently not:
http://pobox.com/~skeet/csharp/stringbuilder.html

Jon
Closed Thread