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

Answer Posted / rahul

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 ?    10 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a console application and implement the ternary operator to decide whether the age a user entered after being prompted is allowed to vote or not(given that only citizens between 18 and 120 years only inclusive can vote). Use exception handling for non-numerical input.

1901


How to implement delegates in c#.net

551


How many types of variables are there in c#?

530


How does c# generics and c++ templates compare?

473


What do you mean by parsing and how to parse a date time string in c#?

525






Why is c# better than java?

504


What is the namespace for the thread class?

520


What is void method?

491


What is a dbml?

504


Give an example of a ctype.

567


What is dependency in software?

525


Explain the types of errors in c#?

487


How many types of constructors are there?

510


what are the Disadvantages of vb

600


What is join in c#?

484