CSharp examples for Language Basics:Operator
String Compound assignment Append
using System;// www . ja va 2 s . c o m using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { // Initial value (empty text) string books = ""; // Appending books += "A " + Environment.NewLine; books += "B " + Environment.NewLine; books += "C " + Environment.NewLine; // Output Console.WriteLine(books); } }