What is loop variable closure?
<p>I have read in <a href="https://stackoverflow.com/questions/247621/what-are-the-correct-version-numbers-for-c">this question</a> that in C# 5.0 was introduced <a href="https://blogs.msdn.microsoft.com/ericlippert/2009/11/16/closing-over-the-loop-variable-part-two/" rel="nofollow noreferrer">loop variable closure</a>, and I have accessed the link in the question to find out what it means. Shame on me, I wasn't able to understand much of what is a loop variable closure, since the blog article explains much about what involves to generate a warning from section blocks where before wasn't any compilation warning generated, and the impact of code changes at a new version of programming language. Since what I understand, the loop closure is not the format of foreach, but are the variables involved in array. Is this right?</p>