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

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.

主站蜘蛛池模板: 嵩明县| 寿光市| 山东| 东辽县| 二连浩特市| 板桥市| 灌阳县| 保定市| 当涂县| 建宁县| 彭水| 独山县| 呼和浩特市| 宁阳县| 保德县| 黄石市| 城固县| 尉犁县| 体育| 睢宁县| 平和县| 德清县| 文安县| 龙口市| 茌平县| 乾安县| 铁岭市| 锡林郭勒盟| 环江| 台南县| 祥云县| 遂平县| 白山市| 夹江县| 长春市| 会同县| 绥棱县| 于都县| 长子县| 房产| 五莲县|