News for hackers. Stuff that matters.
Re:Stop requiring only one assertion per unit test: Multiple... by opminion on Saturday November 05, 2022 @10:00AM (#33481546)
https://stackoverflow.com/a/700325 to write out the internal structure of a LambdaExpression.

If you just want the assignments then it's simpler:

Add to the Evaluate method a test for MemberExpression and then:

The variable name is:

((MemberExpression)expr).Member.Name

The value is:

Expression.Lambda(expr).Compile().DynamicInvoke()

There are no comments on this comment yet.