CodeIterationStatement.TestExpression Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets or sets the expression to test as the condition that continues the loop.

Namespace:   System.CodeDom
Assembly:  System (in System.dll)

public CodeExpression TestExpression { get; set; }

Property Value

Type: System.CodeDom.CodeExpression

A CodeExpression that indicates the expression to test.

If this expression resolves to true, the loop will continue.

.NET Framework
Available since 1.1
Return to top