// Collection of code snippets by Arne Vajhøj // (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) using System; public class LDV11 { public static void Main(string[] args) { Action f1 = (string s) => { Console.WriteLine(s); }; Action fn = (string s, int n) => { for(int i = 0; i < n; i++) Console.WriteLine(s); }; f1("1"); fn("n", 3); } }