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

Member with no value in F# -

java - Joda Time Interval Not returning what I expect -

c# - Showing a SelectedItem's Property -