0
kicks
IEnumerable.Count() is a Code Smell
Count() is a frequently abused LINQ extension method that iterates through every item in an enumerable. But many developers don't realize that .Count() won't short circuit after it finds more than zero items -- it will continue iterating through every single item. This article introduces the problem and proposes a couple of solutions.