Could you please give me an example for Deferred execution with eager evaluation in C#?
I read from MSDN that deferred execution in LINQ can be implemented either wi
One way that you could eagerly evaluate a deferred execution IEnumerable is to simply turn it into an array using linq's .ToArray() function.
var evaluated = enumerable.ToArray();
This forces evaluation of the full enumerable and then you have the array that you can do whatever you want with.