IEnumerable<T>
The .NET interface for any sequence you can loop over one item at a time, the basis of foreach and in-memory LINQ.
In more detail
Arrays, lists, dictionaries and sets all implement it. LINQ over IEnumerable<T> runs your lambdas as compiled code in this process, over items already in memory.
Related terms
- IQueryable<T> — The .NET interface for a query that a provider such as EF Core translates and runs elsewhere, typically as SQL in a database.
- enumerator — The object that walks a sequence, with MoveNext to advance and Current to read the item it is on.
- foreach — The C# loop that asks a collection for its enumerator and hands you one item at a time.
- LINQ — Language Integrated Query: a set of C# operators such as Where, Select and OrderBy for filtering, shaping and combining sequences of data.
Taught in
- Collections, Generics, and LINQ — Modern .NET Core, C# & Enterprise Microservices
- Querying, Change Tracking, and Saving Data — Modern .NET Core, C# & Enterprise Microservices