title: C# for continue inside foreach
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/4992810/continue-and-break-with-an-extended-scope">continue and break with an extended scope</a>  </p>
  </blockquote>
  
  
  
  <p>i have one problem. I don't know how to call continue for "for" inside foreach.</p>
  
  <p>Code:</p>
  
  <pre><code>for(int i = 0; i &lt; ...; i++)
  {
    foreach(´´ .. in ´´)
    {
      if(,,.Value == null)
        // A!
    }
  }
  </code></pre>
  
  <p>And i need replace "A!" for code to continue "for"! Not foreach. I used basic continue but it work just only for foreach.</p>
  
  <p>SOLVED
  with:</p>
  
  <pre><code>for(int i = 0; i &lt; ...; i++)
  {
    bool Ab = false;
  
    foreach(´´ .. in ´´)
    {
      if(,,.Value == null)
        Ab = true;
    }
  
    if(Ab)
      continue;
  }
  </code></pre>