Click here to Skip to main content
15,890,845 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
can anyone please explain this in simple words
IQueryable<t>

and
IEnumerable<t>

What I have tried:

i.e. for example
what is the difference between these 3

C#
IEnumerable<int> scoreQuery = //query variable
        from score in scores //required
        where score > 80 // optional
        orderby score descending // optional
        select score;


C#
var scorequery = from score in scores where score>80 order by score descending 
select score


C#
IQueryable<int> scoreQuery = //query variable
        from score in scores //required
        where score > 80 // optional
        orderby score descending // optional
        select score;
Posted
Updated 6-Jul-16 20:18pm
Comments
Er Daljeet Singh 29-Jun-16 8:21am    
try the following link
http://stackoverflow.com/questions/2433306/whats-the-difference-between-iqueryable-and-ienumerable

http://www.dotnet-tricks.com/Tutorial/linq/I8SY160612-IEnumerable-VS-IQueryable.html

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900