deferred execution

Building a query now but running it only when something asks for its results.

In more detail

Where returns an object that remembers the source and the predicate and filters nothing until a foreach, ToList or First pulls items. This lets you compose a query in one method and decide where it runs in another.

Related terms

Taught in

References