I have two loops and when I iterating in my inner loop, I want to skip iteration for the outer loop according to my condition; continue; is only skips inner loop. Any idea?
foreach (DataRow row in dt.Rows)
{
for (int i = 0; i < 6; i++)
{
if (row[i].Equals(DBNull.Value))
//skip iteration to outer loop. Go to next row.
}
}
break. Are there other instructions behind your inner loop which are inside the outer-loop too?