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 Query