IEnumerator: Collection was modified; enumeration operation may not execute
<p>Code:</p>

<pre><code>public List&lt;Interfaces.Test&gt; IJ_;
IEnumerator&lt;Interfaces.Test&gt; Ij_ = Objects.GetEnumerator();
int count = IJ_.Count;
Ij_.MoveNext();
for (int x = 0; x &lt; count; x++)
{
    if (x &gt;= count)
        break;
    Test MyBase = IJ_.Current;
    if (MyBase == null)
        obj_.MoveNext(); //here the error
}
</code></pre>

<p>Error:</p>

<pre class="lang-none prettyprint-override"><code>System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
at System.Collections.Generic.List`1.Enumerator.MoveNextRare()
at System.Collections.Generic.List`1.Enumerator.MoveNext()
</code></pre>

<p>Please help me.</p>
