adspace


What is the difference between returning iqueryable vs ienumerable?

Answer Posted / Pradip Kumar Dubey

Returning IQueryable allows deferred execution of LINQ queries until they are actually enumerated, enabling the provider to optimize and modify the query. Returning IEnumerable executes the query immediately, returning a collection that can be traversed but cannot be modified.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is expression tree in c#?

996


What is an abstract class c#?

967


Why can't we use a static class instead of singleton?

952


Which namespaces are necessary to create a localized application?

1140


How do you inherit a class into other class in c#?

992


How to assign Null value to Var?

1061