String Concatenation C# with Example



String Concatenation C# with Example

 using System;

namespace CSharpFundamentals
{
    class StringConcatenation
    {
        private static void Main(string[] args)
        {
			String msg = "Hello! ";
			String afterConcatenation = msg + "Kuldeep Mishra";
            Console.WriteLine("After String Concatenation: {0}", afterConcatenation);
			
			afterConcatenation = String.Concat(msg, "Kuldeep Mishra");
            Console.WriteLine("After String Concatenation: {0}", afterConcatenation);
		}
    }
}
 

0 Comment's

Comment Form

Submit Comment