// Collection of code snippets by Arne Vajhøj // (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) using System; namespace E { public class C { public int M1() { public int M() { return 1; } return M() + 1; } public int M2() { public int M() { return 2; } return M() + 1; } } public class Program { public static void Main(string[] args) { C o = new C(); Console.WriteLine("{0} {1}", o.M1(), o.M2()); } } }