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

What is dataadapter c#?

671


What is the meaning of MSIL?

877


What is escape sequence in c#?

799


What is xml comments in c#?

715


how can one use hcl and c sharp together?

1800


What is Custom attribute? How to create? If I'm having custom attribute in an assembly, how to say that name in the code?

733


When was .net linq added?

745


What is the difference between disposing of () and finalize() methods in c#?

770


What is the difference between properties and indexer in c#?

644


What is assembly version series sequence?

759


What is use of hashtable in c#?

679


Which controls do not have events?

797


What is the main usage of keyword “virtual” ? How does it work for a method or property?

737


Which is better python or c#?

661


Explain the difference between passing parameters by value and passing parameters by reference with an example?

730