home / software / tips and tricks / Wha is lazy operators and greedy operators in LINQ ?

Wha is lazy operators and greedy operators in LINQ ?

Updated:  10/28/2013 12:10 PM
Author:  Shiju Mathews

Status:    Resolved.


The operators themselves fall into one of two categories. There are lazy operators that offer deferred execution of a query. When you write a LINQ query that is only using the lazy operators you are only defining the query, and the query will not execute until you actually try to iterate or consume the results of the query.

Other operators are greedy operators that will execute a query immediately.
Tags: Wha is lazy operators and greedy operators in LINQ ?
Updated on: December 2024