Method And
And<T>(Expression<Func<T, bool>>, Expression<Func<T, bool>>)
Combines two predicate expressions using the logical AND operator.
public static Expression<Func<T, bool>> And<T>(this Expression<Func<T, bool>> expr1, Expression<Func<T, bool>> expr2)
Parameters
expr1Expression<Func<T, bool>>The first predicate expression.
expr2Expression<Func<T, bool>>The second predicate expression.
Returns
- Expression<Func<T, bool>>
A new predicate expression that represents the logical AND of the two input expressions.
Type Parameters
TThe type of the parameter in the expressions.