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