Geeks With Blogs
Abhishek Anand Bits & Bytes about .net technology framework. Deferred Execution
Deferred Execution with LINQ
One of the best features of LINQ is the fact that it is lazy. Lazy or Deferred Execution allows you to specify all the conditions of your LINQ statement (Where, OrderBy, Select, etc), without actually executing those functions on the given collection until the results are needed. An example of where you can see this lazy execution in action is when using the Visual Studio Debugger. Let’s say you have an IEnumerable<int> that you want to execute a LINQ statement on and inspect the resulting ......

Posted On Monday, November 18, 2013 6:56 PM

Copyright © Abhishek Anand | Powered by: