// Collection of code snippets by Arne Vajhøj // (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) using System; namespace m2m { public interface IAction { void M(); } public class DN { public static void Demo(int n, string s, IAction o) { for(int i = 0; i < n; i++) { Console.WriteLine("C# says: " + s); } o.M(); } } }