using System; using System.ComponentModel; using System.Linq.Expressions; class MainClass { static void Main() { Expression<Func<int>> return5 = () => 5; Func<int> compiled = return5.Compile(); Console.WriteLine(compiled()); } }