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
Post a Comment