DEV Community

Discussion on: When should one choose IQueryable or IEnumerable?

Collapse
 
ianknighton profile image
Ian Knighton

A quick pass over the article you linked, I don't think I fully understand what the difference is.

Personally, I've never used IQueryable. With IEnumerable and objects that implement it (List<T> for example) you can just use LINQ to query and manipulate data.

I try to minimize interfaces and dependencies as much as possible. Especially since a lot of my work now is in .Net Core where the framework is still somewhat undefined. The less dependencies you have, the less problems you have to solve if something changes.