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

Answer Posted / susan

StringBuilder is more efficient in the cases, where a lot
of manipulation is done to the text. Strings are immutable,
so each time it is 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

What are virtual classes in c#?

533


Explain why do I get an error (cs1006) when trying to declare a method without specifying a return type?

473


What are the Uses of CLR

761


What is difference between dictionary and hashtable in c#?

435


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

528






What is the default scope of a class in c#?

484


What is strongly typed in c#?

498


State the top.NET class that everything is derived from?

525


how to compare numbers and dispaly the largest ? *first thing I wanted to do is to input how many numbers to be compared *and then analyzed the largest then display it.

1285


Can you put two constructor with the same structure in a class?

485


What is the function of the not null constraint?

496


Does c# support parameterized properties?

516


What is interface inheritance?

533


Can I use exceptions in c#?

545


In a site to turn off cookies for one page which method is followed?

509