IEnumerable.Count() is a Code Smell(rapidapplicationdevelopment.blogspot.com)
submitted by
Lear(1195) 2 years, 10 months ago
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.
|category: C#
|Views: 83
tags:
C# another
Everyones tags:
Your Tags: