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
parameter
ParameterExpressionThe parameter expression representing the sequence.
predicate
Expression<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
TSource
The type of the elements in the sequence.