Concatenating strings in C#

Two separate strings can be concatenated to form a single string using '+' operator.

The example illustrates the same:

using System;
using System.IO;

namespace forgetCode
{
    class program1
    {
        static void Main(string[] args)
        {
            string name1 = "Forget";
            string name2 = "code";

            string fullName = name1 + name2;

            Console.WriteLine(fullName);

        }
   
    }
}


Output:
ForgetCode

..