This rule flags the Count and LongCount LINQ method calls used to check if the collection has at least one element. These method calls require enumerating the entire collection to compute the count. The same check is faster with the Any method as it avoids enumerating the collection.pull/5493/head
parent
738dc2c98c
commit
4fe9daec03
Loading…
Reference in new issue