using System; using System.Collections.Generic; using System.Linq; public class Test { public static void Main() { int [] arr = { 3, 2, 1, 6, 5, 6 }; var closures = new List(); foreach (var i in arr) closures.Add(() => Console.WriteLine(i)); foreach (var run in closures) run(); } }