// Collection of code snippets by Arne Vajhøj // (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) using System; using System.Collections.Generic; public class Program { public static void Main(string[] args) { int[] arr1 = [ 1, 2, 3 ]; int[] arr2 = [ 4, 5, 6 ]; int[] arr3 = [ ..arr1, ..arr2 ]; foreach(int v in arr3) Console.Write(" {0}", v); Console.WriteLine(); List lst1 = [ 1, 2, 3 ]; List lst2 = [ 4, 5, 6 ]; List lst3 = [ ..lst1, ..lst2 ]; foreach(int v in lst3) Console.Write(" {0}", v); Console.WriteLine(); } }