what is the basic difference between System.Linq.IQueryable and System.Collections.Generic.List which one is faster and when to use what?
Asked
Active
Viewed 342 times
0
-
Difference is they are *Apples and oranges* – Sriram Sakthivel Apr 14 '14 at 10:27
1 Answers
0
An IQueryable<T>
is an interface
which abstracts some type of query. This query can be executed (by iterating over the query), but you have to use ToList<T>
to convert (the results of) the query into a list.
A List<T>
is just a list which can contain some objects. Ready for you to be retrieved when you need them.

Maarten
- 22,527
- 3
- 47
- 68