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

Is a valid int value?

717


What is difference between association, aggregation and inheritance relationships?

733


What is the difference between the debug class and trace class? Documentation looks the same.

777


What is .cshtml file?

700


What is ado net in c#?

703


Is arraylist thread safe?

688


How does the lifecycle of Windows services differ from Standard EXE?

745


Why do we use delegates?

646


What's the difference between class and object?

723


What are the steps to create an assembly and add it to the gac?

677


How to Install uninstall assemblies into GAC?

710


What is parameterized constructor?

716


Why attributes are used in c#?

663


What is the difference between public, static, and void?

681


What happens if you add duplicate elements to a set?

714