// 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 LF7 { public void Test() { void Test2() { Console.WriteLine("Local function"); } Test2(); } public static void Main(string[] args) { LF7 o = new LF7(); o.Test(); } }