Click or drag to resize

IForLoopStatement Interface



Represents a C# for statement or a VB For statement.

Namespace:  Microsoft.CodeAnalysis.Semantics
Assembly:  Microsoft.CodeAnalysis (in Microsoft.CodeAnalysis.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
Syntax
public interface IForLoopStatement : IForWhileUntilLoopStatement, 
	ILoopStatement, IOperation

The IForLoopStatement type exposes the following members.

Properties
  NameDescription
Public propertyAtLoopBottom
Statements to execute at the bottom of the loop. For C# these come from the third clause of the for statement. For VB these increment the index variable of the For statement.
Public propertyBefore
Statements to execute before entry to the loop. For C# these come from the first clause of the for statement. For VB these initialize the index variable of the For statement.
Public propertyBody
Body of the loop.
(Inherited from ILoopStatement.)
Public propertyCondition
Condition of the loop.
(Inherited from IForWhileUntilLoopStatement.)
Public propertyConstantValue
If the operation is an expression that evaluates to a constant value, HasValue is true and Value is the value of the expression. Otherwise, HasValue is false.
(Inherited from IOperation.)
Public propertyIsInvalid
Indicates whether the operation is invalid, either semantically or syntactically.
(Inherited from IOperation.)
Public propertyKind
Identifies the kind of the operation.
(Inherited from IOperation.)
Public propertyLocals
Declarations local to the loop.
Public propertyLoopKind
Kind of the loop.
(Inherited from ILoopStatement.)
Public propertySyntax
Syntax that was analyzed to produce the operation.
(Inherited from IOperation.)
Public propertyType
Result type of the operation, or null if the operation does not produce a result.
(Inherited from IOperation.)
Top
Methods
Remarks
This interface is reserved for implementation by its associated APIs. We reserve the right to change it in the future.
See Also