using System; using System.Collections.Generic; using System.ComponentModel; class MainClass { static void Main() { Action<int> printRoot = delegate(int number) { Console.WriteLine(Math.Sqrt(number)); }; printRoot(2); } }