I've learned to manipulate Dynamic lambda expressions with the Expression class.
However, the lambda expression used in a ForEach method (LINQ
) seems a little different since it's an assign.
For exemple, doing this :
myList.ForEach(x => x.Status = "OK") ;
will update the Status property of each object in the myList list.
How to accomplish it using Expression object? I didn't find any method in Expression to set a property... Is it used only for retrieving properties values ?