METHOD
Enumerable.Any
Tests whether at least one element satisfies the condition.
Formal Syntax & Structure
csharp syntaxcsharp
source.Any(predicate)Working Example
Example Snippetcsharp
using System;using System.Linq;bool found = new[] {1,2}.Any(n => n == 2);