// 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 LDV12 { public static void Main(string[] args) { var f = (string s, int n = 1) => { for(int i = 0; i < n; i++) Console.WriteLine(s); }; f("1"); f("n", 3); } }