C# and continue operator in cycles

Hello everybody,

today I want to write a notice about word continue in C#. 

So, how it look like:

for( int i = 0; i < 10; i++ )


     if(i == 5)




    //do some other staff


In this code, //do some other staff will be executed only 9 times, because for fifth it is written as continue. Continue can be compared to situation, when you bust some boxes, but then you see, that some box doesn't feet to your needs. Then you'll say to C# compiler, skip the box, and continue to bust another boxes.

No Comments

Add a Comment