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

 Posted by Govind on 3/14/2012 | Category: C# Interview questions | Views: 8068 | Points: 40

String Builder 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.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Posted by: Rajni.Shekhar on: 3/21/2012 | Points: 10
try following code for string builder

System.Text.StringBuilder sb = new System.Text.StringBuilder();
sb.Append("example of");
sb.Append(" string builder");
Posted by: Iluvdotnetfunda on: 3/27/2012 | Points: 10
I can't get you..
Can please give me a brief idea about this..


Login to post response

More Interview Questions by Govind