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

Can extension methods access private members?

679


Write one code example for compile time binding and one for run time binding? What is early/late binding?

800


What is tryparse c#?

710


What is the root element of an xml file?

684


What are the namespace level elements?

690


Can we override interface method?

738


Difference between value and reference type. What are value types and reference types?

730


4. Describe the process when we send a request URL? And who is responsible for that?

1727


In which order the constructor is called for an inherited class?

726


Can a struct inherit from another struct or class in c#?

701


what is a constructor? What is a destructor?

736


What is a base class in C#?

750


What is datagrid c#?

663


How can I make sure my c# classes will interoperate with other .net languages?

746


How to force my .net app to run as administrator on windows 7?

711