Break and Continue Statements in C#

added by DotNetKicks
1/17/2022 3:53:56 PM

347 Views

In C#, we use the break and continue statements to control the flow of iterations in our code. Both commands help us to stop an iteration of our code. While the break statement stops an iteration and "breaks" out from the entire parent loop in which it appears, the continue statement stops a specific iteration but "continues" the parent loop in which it appears.


0 comments