Method Any
Any<TSource>(ParameterExpression, Expression<Func<TSource, bool>>)
Creates an expression that determines whether any element of a sequence satisfies a specified condition.
public static Expression Any<TSource>(this ParameterExpression parameter, Expression<Func<TSource, bool>> predicate)
Parameters
parameterParameterExpressionThe parameter expression representing the sequence.
predicateExpression<Func<TSource, bool>>The predicate expression to apply to each element of the sequence.
Returns
- Expression
An expression that determines whether any element of the sequence satisfies the specified condition.
Type Parameters
TSourceThe type of the elements in the sequence.