// Collection of code snippets by Arne Vajhøj // (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) using System; namespace StringFormatting6 { public class Program { public static void Main(string[] args) { int iv = 123; string sv = "ABC"; string s = string.Format("{0} {1}", iv, sv); Console.WriteLine(s); } } }