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

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.

主站蜘蛛池模板: 青海省| 高平市| 鹤岗市| 铜川市| 隆昌县| 湘潭市| 霞浦县| 盘锦市| 永登县| 崇阳县| 博客| 贺州市| 南城县| 西贡区| 高州市| 平遥县| 凉山| 满洲里市| 壤塘县| 顺昌县| 闻喜县| 新余市| 八宿县| 临汾市| 大洼县| 孟连| 多伦县| 义乌市| 邵阳市| 广汉市| 伽师县| 孝义市| 临西县| 大洼县| 浮山县| 凤翔县| 济源市| 瑞金市| 家居| 南华县| 河北区|