What is the Namespace used in StringBuilder?

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

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