using System; using System.ComponentModel; class MainClass { static void Main() { Func<string, int> returnLength; returnLength = (text => text.Length); Console.WriteLine(returnLength("Hello")); } }