nedcomp hosting homepage

Producten en Diensten
Dedicated servers
Datacenter informatie
Partners, resellers
Helpdesk informatie
Technische docs, tools
Support homepage
ASP componenten
Praktische ASP, ASP.NET
Visual route server
Whois (domein gegevens)
Software documentatie
Whitepapers
Zoeken
Nedcomp / algemeen

Zoeken
 

Copyright © Nedcomp Hosting
Telefoon nr :   +31 184 670111
Fax nummer :   +31 184 631384
E-mailadres :   info@nedcomp.nl
 

C# Programmer's Reference  

continue

The continue statement passes control to the next iteration of the enclosing iteration statement in which it appears. It takes the following form:

continue;

Example

In this example, a counter is initialized to count from 1 to 10. By using the continue statement in conjunction with the expression (i < 9), the statements between continue and the end of the for body are skipped.

// statements_continue.cs
using System;
class ContinueTest 
{
   public static void Main() 
   {
      for (int i = 1; i <= 10; i++) 
      {
         if (i < 9) 
            continue;
         Console.WriteLine(i);
      }
   }
}

Output

9
10

See Also

C# Keywords | <_pluslang_the_c.2b2b_.break_statement>Compare to C++ | Jump Statements | C. Grammar