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

Answer Posted / rahul

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 ?    10 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is dependency injection?

752


Wcf and what is difference between wcf and web services?

737


What is the purpose of reserved word using in c#?

691


How can I access the registry from c# code?

744


What is the purpose of static?

752


What is default access modifier for class in c#?

702


What is managed code?

751


How many dimensions can an array have?

680


What is stringbuilder c#?

726


What is a clr host?

747


Is stringbuilder thread safe c#?

655


What is clr namespace?

690


what is the syntax to inherit from a class in c#?

764


What do you know about WM_CHAR message?

772


What is yield break in c#?

715