How Yield works within a ForEach block?
<p>How Yield works within a <code>foreach</code> loop shown below? lstNumbers is of type <code>List&lt;int&gt;</code>.</p>

<pre><code>foreach (int i in lstNumbers)
{
    yield return i;
}
</code></pre>

<p>Will it start returning as it receives the value or it returns the final list at the end?</p>

<p>How is it different from:</p>

<pre><code>   foreach (int i in lstNumbers)
    {
        return i;
    }
</code></pre>
