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

Answer Posted / kirti

StringBuilder is more efficient in cases where there is a large amount of string manipulation. Strings are immutable, so each time it's 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 lazy t thread safe?

649


Write the syntax for catching an exception in c#?

568


List the 5 different access modifiers in c#?

591


What is method overriding in c#

677


What’s thread.sleep() in threading ?

602






What are different types of classes in c#?

559


What is an example of a delegate?

596


What is dependency in software?

606


What is a constructor in c#?

609


What are the variables in c#?

597


What is default class in c#?

576


What is difference between sleep () and wait ()?

572


How many bytes is an int c#?

579


Explain acid rule of thumb for transactions in c#.

595


Is c# substring zero based?

583