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 is the use of delegate?

530


What is CASPOL?

610


What are the classes contained in a single .NET DLL ?

508


What is the meaning of MSIL?

666


In languages without exception-handling facilities, we could send an error-handling procedure as a parameter to each procedure that can detect errors that must be handled. What disadvantages are there to this method?

602






List the two important objects of ado.net and also list the namespaces that are commonly used in ado.net to aid in connection to a database.

524


Constructor to an arbitrary base constructor?

563


Where do we use serialization in c#?

498


What is the real use of interface in c#?

466


what is inheritance and an example in vb.net and c# of when you might use it?

531


How to transpose multi-dimensional array?

562


What are different types of Delegates in C#?

567


What are the differences between events and delegates in c#?

466


What is dll file in c#?

527


Does c# support const methods, properties, or events?

550