String Concatenation in C#

Started by nandagopal, Feb 04, 2009, 10:09 PM

Previous topic - Next topic

nandagopal

You can use the plus-sign (+) to perform string concatenation in C#:

int z = 23;
Console.WriteLine("Jordan wore number " + z + ".");

Produces the following output in the console window:

Jordan wore number 23.