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
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.