Linq – What is the quickest way to find out deferred execution or not?
Generally methods that return a sequence use deferred execution: IEnumerable<X> —> Select —> IEnumerable<Y> and methods that return a single object doesn’t: IEnumerable<X> —> First —> Y So, methods like Where, Select, Take, Skip, GroupBy and OrderBy use deferred execution because they can, while methods like First, Single, ToList and ToArray don’t because they can’t. … Read more