PagedList icon indicating copy to clipboard operation
PagedList copied to clipboard

Prevent evaluating Count() twice.

Open Dmitry-Me opened this issue 10 years ago • 0 comments

IEnumerable.Count() will run the query twice if called twice http://stackoverflow.com/questions/5050326/why-is-ienumerable-count-reevaluating-the-query This caches the value to avoid reevaluation.

Dmitry-Me avatar Mar 28 '14 09:03 Dmitry-Me