I have the following class
public class MyClass { public bool Delete(Product product) { // some code. } }
Now I have a
You can compile the argument expression and then invoke it to calculate the value:
var values = new List(); foreach(var arg in body.Arguments) { var value = Expression.Lambda(argument).Compile().DynamicInvoke(); values.Add(value); } this.ArgValues = values.ToArray();