{TOC}
| Namespace: | System.Linq |
| Assembly: | System.Core.dll |
| Extends: | IEnumerable<T> |
Back to
Standard Query Operator IndexEditIntroduction
The Any operator checks whether any element of a sequence satisfies a condition.
EditMethod Signatures
public static bool Any<TSource>(
this IEnumerable<TSource> source)
public static bool Any<TSource>(
this IEnumerable<TSource> source,
Func<TSource, bool> predicate)EditExceptions
Throws an ArgumentNullException is
source or
predicate is null.
EditCode Samples
TODO:Needs code sample.