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

Answer Posted / kirti

StringBuilder is more efficient in cases where there is a large amount of string manipulation. Strings are immutable, so each time it's being operated on, a new instance is created.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Give examples for value types?

493


What is uint c#?

457


Please explain value types and reference types used in c#?

478


What is difference between string and stringbuffer in c#?

474


What's the c# syntax to catch any possible exception?

493






Define multicast delegate? How it be used?

601


What will a loop recorder show?

549


What is a bool in c#?

481


What is a trace and asset? Explain some differences?

703


What is garbage collector and where should you use in .NET?

518


What is the real use of interface in c#?

466


Is the following code legal?

569


Why do we need properties in c#?

495


Is it possible to restrict the scope of a field/method of a class to the classes in the same namespace?

509


What is fcl in c#?

492