using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication5 { class Program { delegate int TwoIntegerOperation(int a, int b); static void Main(string[] args) { TwoIntegerOperation function1 = delegate(int a, int b) { return a + b; }; TwoIntegerOperation function2 = (a, b) => a - b; RunFunction(function1); RunFunction(function2); RunFunction((a, b) => a * b); Console.Read(); } static void RunFunction(TwoIntegerOperation function) { Console.WriteLine(function(2,3)); } } }