Top "Ienumerable" questions

IEnumerable, and its generic counterpart IEnumerable<T> are .NET interfaces for iterating (or enumerating) through a collection of items.

IEnumerable is empty?

I know it probably doesnt matter/affect performance for the most part but I hate the idea of getting an …

.net linq ienumerable
Appending/concatenating two IEnumerable sequences

I have two sets of datarows. They are each IEnumerable. I want to append/concatenate these two lists into one …

c# ienumerable unions
How does Assert.AreEqual determine equality between two generic IEnumerables?

I have a unit test to check whether a method returns the correct IEnumerable. The method builds the enumerable using …

c# unit-testing ienumerable mstest assert
Convert Dataset to IQueryable<T> or IEnumerable<T>

Since there is no Linq to DB2 yet (c'mon IBM!), and I want to deal with IQueryables or IEnumerables in …

linq datatable ienumerable iqueryable
Why do arrays in .net only implement IEnumerable and not IEnumerable<T>?

I was implementing my own ArrayList class and was left surprised when I realised that public System.Collections.Generic.IEnumerator&…

c# .net arrays ienumerable ienumerator
With Entity Framework is it better to use .First() or .Take(1) for "TOP 1"?

We are implementing some EF data repositories, and we have some queries which would include TOP 1 I have read many …

sql linq entity-framework ienumerable linq-to-objects
Recommended way to check if a sequence is empty

A method returns a sequence, IEnumerable<T>, and you now want to check if it is empty. How …

c# linq ienumerable
LINQ ToListAsync expression with a DbSet

I have coded a C# MVC5 Internet application, and have a question about using the .ToListAsync LINQ expression. Here is …

c# linq async-await entity-framework-6 ienumerable
Why is .ForEach() on IList<T> and not on IEnumerable<T>?

Possible Duplicate: Why is there not a ForEach extension method on the IEnumerable interface? I've noticed when writing LINQ-y code …

c# list linq c#-3.0 ienumerable