title: ForEach() : Why can't use break/continue inside
body: <p>Since ForEach() method loop through all a list members, Why cant use a <strong>break/continue</strong> clause while i can use them inside a normal foreach loop</p>
  
  <pre><code>lstTemp.ForEach(i=&gt;
   {
     if (i == 3)
     break;
     //do sth
   }
  );
  </code></pre>
  
  <p>Error: </p>
  
  <blockquote>
    <p>"No enclosing loop out of which to
    break or continue"</p>
  </blockquote>