score:2

Accepted answer

You should return containsExp directly, passing Expression.Lambda as an argument for And does not make sense. And can operate on boolean values. It can operate on result of function, if the result is boolean value. But it can not take function itself as an argument.

what you have done is basically

bool res = ((Func<MV, bool>)(mv => FtsIds.Contains(mv.MVID))) && true;

Related Articles