天天看点

C# break和continue

break:

break;

退出【当前循环】结构或者退出【当前switch】结构。

continue:

continue;

跳过【当前循环】,进行下一轮循环。(【仍然判断】循环条件,不满足循环条件,循环一样结束)