Code inspection: Use method Any()
This inspection reports a LINQ emptiness check written as Count() < 1. Using !Any() expresses the same intent more directly.
Example
bool isEmpty = items.Count() < 1;
bool isEmpty = !items.Any();
Quick-fix
Replace the count comparison with !Any().
29 March 2026