c# - Is it possible foreach with outside declared variable -


Typically writes for each

  list & lt; Int & gt; IntList = new list & lt; Int & gt; (); Foreach (int one in int one) {if (a & gt; 5) {break; }}  

Is it possible to do something

  list & lt; Int & gt; IntList = new list & lt; Int & gt; (); Int a = 0; Foreign (in an interview) (if (a and a ;; 5) {brake;}} // some ** ** **  

Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -