title: C# using Continue inside the catch of a try catch
body: <p>Now, I'm having a major problem with the continue statement. FetchUnseenMessages may or may not return an error depending on whether or not it's able to connect to a specified Email account. I want the continue statement to go back up to the next item in the foreach statement (trying the next email account) should FetchUnseenMessages fail. I'm getting some unexpected results. I don't believe the continue statement is going to the next item in the foreach statement but going back to the beginning of the try statement and trying it again. I've been stuck on this all day and I'm pretty stuck. Please help. Thanks, Chris.</p>
  
  <pre class="lang-cs prettyprint-override"><code>foreach (string l in lUserName)
  { 
      try
      {
          newMessages = FetchUnseenMessages(sUsername);
      }
      catch
      {
          continue;
      }
  
      //Other code
  }
  </code></pre>