Code inspection: Simplify LINQ expression (use 'Any')
This inspection reports a negated All(...) call that is equivalent to Any(...). This usually appears when code checks whether at least one element breaks a condition. Using Any(...) expresses that intent more directly.
Example
bool hasZero = !xs.All(x => x != 0);
bool hasZero = xs.Any(x => x == 0);
Quick-fix
Replace the negated All(...) call with an equivalent Any(...) call.
29 March 2026