How would I go about using an Expression Tree to dynamically create a predicate that looks something like…
(p.Length== 5) && (p.SomeOtherProperty == "hello")
So that I can stick the predicate into a lambda expression like so…
q.Where(myDynamicExpression)...
I just need to be pointed in the right direction.
Update: Sorry folks, I left out the fact that I want the predicate to have multiple conditions as above. Sorry for the confusion.
Original
Like so:
Updated
re
(p.Length== 5) && (p.SomeOtherProperty == "hello"):