Alex Rivera | Logout

What's the difference between IQueryable and IEnumerable

Asked 2010-03-12T14:22:40.490
160

I'm confused as to the difference. Being fairly new to .Net, I know I can query IEnumerables using the Linq extensions. So what is this IQueryable and how does it differ?


See also What is the difference between IQueryable[T] and IEnumerable[T]? that overlaps with this question.

Edit
Report

1 Answer

1

IQueriable is the same as IEnumerable but it also provides additional functionality to implement custom querying with Linq. Here is description on MSDN: http://msdn.microsoft.com/en-us/library/system.linq.iqueryable.aspx

answered 2010-03-12T14:24:09.863

Your Answer