Skip to main content
InterviewHubPRO
Section Overview
Q8

Question 8 of 50

Part 1: Core Language, CLR & Memory Architecture (1 - 10)

16%
C# & CLR Internals (50 Qs)•Part 1: Core Language, CLR & Memory Architecture (1 - 10)

What is the difference between `IEnumerable<T>`, `IQueryable<T>`, and `IAsyncEnumerable<T>`?

senior LevelAsync & PromisesTypeScriptSystem Design

In Simple Words:

  • IEnumerable<T>: In-memory collection iterator. Filtering (Where, Select) runs in client RAM using LINQ to Objects.
  • IQueryable<T>: Represents a deferred query using Expression Trees. LINQ providers (Entity Framework) translate the expression tree into native SQL and execute on the database server.
  • IAsyncEnumerable<T> (C# 8+): Streams asynchronous sequences of data item-by-item (await foreach) without buffering the entire dataset in server memory.