Sobes.tech
Middle

List<Action> actions = new List<Action>(); for (var count = 0; count < 10; count++) { actions.Add(() => System.Console.WriteLine(count)); } foreach (var action in actions) { action(); } What will be in stdout?

List<Action> actions = new List<Action>(); for (var… - sobes.tech