Enumerable.Any Method

July 28, 2014

Determines whether any element of a sequence exists or satisfies a condition.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method Static member Any<TSource>(IEnumerable<TSource>) Determines whether a sequence contains any elements.
Public method Static member Any<TSource>(IEnumerable<TSource>, Func<TSource, Boolean>) Determines whether any element of a sequence satisfies a condition.
Top

Show:
© 2014 Microsoft