Tuesday 22 May 2012

LINQ , .net tip : Linq delayed execution behavior

An interesting feature of LINQ is its delayed execution behavior. Means that even though you may execute the query statements at a specific point in your code, LINQ is smart enough to delay the actual execution of the query until it is accessed.
For example, in the previous samples, although the LINQ query was written before the binding of the GridView controls, LINQ will not actually execute the query you have defined until the GridView control begins to enumerate through the query results.

No comments:

Post a Comment