NFL Forum | Loans | Credit Cards | Debt Help | Photoshop Tutorials
C # : When exactly should a StringBuilder be used? [Archive] - PCMech Forums

PDA

View Full Version : C # : When exactly should a StringBuilder be used?


gicio
11-09-2003, 03:26 PM
Hi!

I’m very interesting in when to use exactly the StringBuilder?

For example for something like this?:

String strTest1 = “This”;
String strTest2 = “Test”;
StringBuilder stbTest = new StringBuilder();
stbTest.Append(strTest1). Append(“is a ”). Append(stbTest);


can someone provide some sample codes when to use a StringBuilder?

And can someone tell me his experience about the performance of a StringBuilder?


Regards,


gicio