What?s the advantage of using System.Text.StringBuilder over
System.String?

Answer Posted / guest

StringBuilder is more efficient in the cases, where a lot of
manipulation is done to the text. Strings are immutable, so
each time it?s being operated on, a new instance is created

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you create dlls in .NET

582


What is collection of classes in c#?

521


Can we change static variable value in c#?

499


What is writeline?

489


What is the difference between null and string empty in c#?

472






What is the default modifier for class in c#?

526


Does main have to be static c#?

496


What is the difference between an implicit conversion and an explicit conversion?

500


Is std :: string null terminated?

498


What is the difference between list and ilist in c#?

493


Why do we need delegates in c#?

498


What is using in c#?

475


Can enum be null c#?

532


Is java better than c#?

526


What is the difference between do and while loop?

456