↑ Grab this Headline Animator

Wednesday, November 26, 2008

Creating a LINQ query does not actually execute the query till the query is first enumerated when the application executes. This is known as:

1. Deferred Evaluation
2. Loop Evaluation
3. Slow Evaluation
4. Waiting Evaluation

Ans: 1

Deferred execution means that the evaluation of an expression is delayed until its realized value is actually required. Deferred execution can greatly improve performance when you have to manipulate large data collections, especially in programs that contain a series of chained queries or manipulations. In the best case, deferred execution enables only a single iteration through the source collection.

Submit this story to DotNetKicks

No comments:

Post a Comment

Post your comments/questions/feedback for this Article.


Latest Articles