IEnumerable is empty? April 15, 2023 by Tarik You want IEnumerable.Any() extension method (.Net Framework 3.5 and above). It avoids counting over the elements.