The best way to get a count of IEnumerable April 3, 2024 by Tarik In any case, you have to loop through it. Linq offers the Count method: var result = myenum.Count();