« Chaos and Order on DiskType Aliases in C# »C# lambda and foreach variable Posted by Bojan Resnik on June 17, 2009 Can you guess what the output of the following program is?
using System; using System.Collections.Generic;
namespace Lambda { class Program { static void Main(string[] args) { var strings = new[] {"a", "b", "c"}; var actions = CreateActions(strings); actions.ForEach(f => f()); }
private static List
No comments yet, be the first one to post comment.