Skip to content

Latest commit

 

History

History
34 lines (30 loc) · 1.52 KB

File metadata and controls

34 lines (30 loc) · 1.52 KB
title continue (C# Reference)
ms.date 07/20/2015
ms.prod .net
ms.technology
devlang-csharp
ms.topic article
f1_keywords
continue_CSharpKeyword
continue
helpviewer_keywords
continue keyword [C#]
ms.assetid 8a5ac96f-f98a-4519-b32d-345847ed7be0
caps.latest.revision 20
author BillWagner
ms.author wiwagn

continue (C# Reference)

The continue statement passes control to the next iteration of the enclosing while, do, for, or foreach statement in which it appears.

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.

[!code-csharpcsrefKeywordsJump#3]

C# Language Specification

[!INCLUDECSharplangspec]

See Also

C# Reference
C# Programming Guide
C# Keywords
break Statement
Jump Statements