static void Main() // First build a list of actions for (int counter = 0; counter < 10; counter++) actions.Add(() => Console.WriteLine(counter)); foreach (Action action in a
static void Main() // First build a list of actions for (int counter = 0; counter < 10; counter++) actions.Add(() => Console.WriteLine(counter)); foreach (Action action in a