1 min readJun 12, 2018
Almog Cohen Yes, that is true but only if you don’t apply any operator that converts it to an IEnumerable. If you apply a Where(), the resulting number of elements may change, forcing a full scan to count the elements. I wrote a follow-up explaining why you should not trust that optimization. If you want to use the Count property, use IReadOnlyCollection or ICollection explicitly.