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