DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Append String In C#

03.26.2012
| 1689 views |
  • submit to reddit
        Append string in c# using overloaded add operator.

	string string1 = "This is dot net ";
	string string2 = "zone ";
	string2 += "Snippet";
	Console.WriteLine(string2);

output: This is dot net zone Snippet