What is the difference between Enumerable and Queryable?

  • Thread starter Thread starter Alexander Vasilevsky
  • Start date Start date
What is the difference between Enumerable and Queryable?

Broadly, Enumerable provides extension methods for IEnumerable<T>.
Queryable provides extension methods for IQuerable<T>.

IEnumerable<T> is used for LINQ to Objects, whereas IQueryable<T> is
designed for LINQ providers which need to translate expression trees
into other forms - web service calls, SQL, LDAP etc.

Jon
 
Back
Top