How does the following LINQ statement work?
Here is my code:
var list = new List{1,2,4,5,6}; var even = list.Where(m => m%2 == 0); list.Add
This has happened because of deferred execution, which means that the calculation of the expression is not executed until it is needed someplace. This makes the performance better if the data is too large.