System.CodeDom.CodeIterationStatement Class

Represents a for statement, or a loop through a block of statements, using a test expression as a condition for continuing to loop.

See Also: CodeIterationStatement Members


public class CodeIterationStatement : CodeStatement


A System.CodeDom.CodeIterationStatement can represent a for loop or while loop.

The CodeIterationStatement.InitStatement property specifies the statement to execute before the first loop iteration. The CodeIterationStatement.TestExpression property specifies the loop continuation expression, which must evaluate to true at the end of each loop iteration for another iteration to begin. The CodeIterationStatement.IncrementStatement property specifies the statement to execute at the end of each loop iteration. The CodeIterationStatement.Statements property specifies the collection of statements to execute within the loop.


Namespace: System.CodeDom
Assembly: System (in System.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0,,