What is the Namespace used in StringBuilder?

 Posted by Rajesh_Kumar on 1/19/2014 | Category: C# Interview questions | Views: 776 | Points: 40
Answer:

We use System.Text Namespace to work with StringBuilder.

StringBuilder sb = new StringBuilder();

sb.Append("Rajesh Kumar");
sb.Append(" Sathua");
string st = sb.ToString();


Output would be:Rajesh Kumar Sathua


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response