Possible Duplicate:
How to check if two Expression<Func<T, bool>> are the same
I need to compare two lambda expressions, to check equality. Basicly, the two following lambda are identical:
Expression<Func<int, bool>> exp1 = (Foo f) => f.Bar().StartsWith("F");
Expression<Func<int, bool>> exp2 = (Foo b) => b.Bar().StartsWith("F");
How can I check if exp1
does the same thing that exp2
does?