Lets say i have :
Func<Customer,bool > a = (c) => c.fullName == "John";
now i want to convert to expressiontree any way to do that ?
i know i can define it from the first place as expressiontree but the situation i have is different because i must concatenate some lambda expressions first then pass it to a method which take expressiontree, doing so result in compile time error!
example:
Func<Customer, bool> a = (c) => c.fullName == "John";
Func<Customer, bool> b = (c) => c.LastName == "Smith";
Func<Customer, bool> final = c => a(c) && b(c);
now i want to pass final to a method which takes
ExpressionTree<Func<Customer,bool >>
it gives compile time error
thanks in advance