CAN YOU USE A FOR STATEMENT INSIDE OF A FOREACH STATEMENT IN C# code example
Example: get out of foreach statement c#
foreach (string s in sList)
{
if (s.equals("ok"))
{
break; // get out of the loop
}
}
foreach (string s in sList)
{
if (s.equals("ok"))
{
break; // get out of the loop
}
}