force Expression<> to evaluate local variables
问题 I have something like this in LinqPad void Main() { var t1 = DateTimeOffset.Parse("10/1/2012"); int? n1 = 1; Expression<Func<Sample,bool>> x1 = ud => (ud.Date == t1 && ud.Number == n1); x1.ToString().Dump(); } class Sample { public int? Number{set;get;} public DateTimeOffset Date{set;get;} } it outputs ud => ((ud.Date == value(UserQuery+<>c_ DisplayClass0).t1) AndAlso (ud.Number == value(UserQuery+<>c _DisplayClass0).n1)) is there any possible way to keep the variables but have it output