using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Reflection; public class ABC { public int Value { get; private set; } } internal class Program { static void Main() { Expression> expr = abc => abc.Value; Console.WriteLine(((expr.Body as MemberExpression).Member as PropertyInfo).Name); Yoba(5).ToList().ForEach(Console.WriteLine); } private static IEnumerable Yoba(int x) { foreach (var v in Enumerable.Range(3, 9)) { yield return v; } } }