When working with Atomic Operators and deferred operations provided by the Linq extensions, it is important to understand the behaviour of the program. Consider the following code: int i = 10; var q = (from m in Enumerable.Range(1, 5) select ++i + i++); foreach (var n in q) { Console.WriteLine(“i = {0}; n = {1}; … Continue reading Linq Deferred Loading impact on atomic operators