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 I declare a pure virtual function in c#?

662


Are enums static c#?

580


What is array c#?

605


Why do we need constructor?

570


What is an abstract class c#?

580






Explain what are three test cases you should go through in unit testing?

581


What does string intern do?

567


Define interface class in c#?

596


Define delegate?

621


Can scriptable objects have methods?

580


What is the delegate in c#?

569


is it possible to access a remote web service Without UDDI?

642


Explain the concepts of cts and cls(common language specification).

593


What is primitive types in c#?

555


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

545