static void Main(string[] args) { TestPointer test = new TestPointer(); test.function1(() => test.function2()); // Error here: The name 'function2' does not exist in current context Console.ReadLine(); }
static void Main(string[] args) { TestPointer test = new TestPointer(); test.function1(); }