How to convert a Predicate to Expression
Hi friends, I have the method bellow
My Question is is there any way or technique to
Convert
that Predicate
to an Expression
because the method should return an Expression
???5 Replies
Method:
I hope someone here to suggest a solution
and massive thanks in advance
i think this should work
you can’t “convert” a predicate to an expression, except perhaps as an expression that invokes that predicate
if you want the full expression tree you need to create it directly from the lambda
This one works perfectly
Thanks you a lot mate
Ask the thread owner or member with permission to close this!