官术网_书友最值得收藏!

continue

This helps continue the control to the next iteration of loop, and it comes with while, do, for, or foreach loops. Take a look at the following example:

private static void ContinueStatementExample() 
{ 
WriteLine("continue statement example"); 
WriteLine("continue in for loop"); 
for (int count = 0; count < 15; count++) 
{ 
if (count< 8) 
{ 
 continue; 
} 
 WriteLine($"{count}"); 
} 
} 

The preceding code bypasses the execution when the if expression evaluates to true.

主站蜘蛛池模板: 永善县| 陵川县| 泽州县| 比如县| 奉化市| 民乐县| 安福县| 宜都市| 岑溪市| 白玉县| 桃源县| 松江区| 牙克石市| 镇宁| 安多县| 临湘市| 嘉峪关市| 保靖县| 乌拉特中旗| 开江县| 丰顺县| 阆中市| 四川省| 九龙坡区| 普格县| 襄樊市| 大城县| 确山县| 东城区| 松潘县| 海门市| 策勒县| 雅江县| 河北省| 建始县| 双城市| 施秉县| 天祝| 津市市| 斗六市| 左权县|