Answer: AppendLine method is used to Append string value in a New Line.
StringBuilder sb = new StringBuilder();
sb.AppendLine("Rajesh Kumar");
sb.AppendLine(" Sathua");
MessageBox.Show(sb.ToString());
//Output would be:Rajesh Kumar
Sathua //new line
Asked In: Many Interviews |
Alert Moderator