Any operator

The LINQ operator that answers whether at least one item matches, stopping at the first one that does.

In more detail

With no predicate it simply asks whether the sequence has any items at all. Use Any() rather than comparing Count() with zero, which would count every item.

Related terms

Taught in

References