Monday, March 10, 2008

How to: Join Multiple Strings (C#)

How to: Join Multiple Strings (C#): "How to: Join Multiple Strings (C# Programming Guide)"

class StringBuilderTest
{ static void Main()
{ string two = "two";
System.Text.StringBuilder sb = new System.Text.StringBuilder();
sb.Append("one ");
sb.Append(" three");
System.Console.WriteLine(sb.ToString());
string str = sb.ToString();
System.Console.WriteLine(str); }}


www.svdeals.com

No comments: