Mega Code Archive

 
Categories / C# Tutorial / String
 

Mix string and integer in string cancatenation

using System;   class MainClass {     public static void Main() {       string result = String.Concat("hello ", 88, " ", 20.0, " ",                             false, " ",  23.45M);       Console.WriteLine("result: " + result);     } } result: hello 88 20 False 23.45