CxStatementForEach

Description

sealed class Tinman.Core.Cx.Statements.CxStatementForEach

A statement that loops over an enumerable sequence of elements:

foreach (TItem item in sequence)
  item.Consume();

ICxExpressionContainer.Expression returns the IEnumerable expression.
ICxStatementContainer.Statement returns the body statement of the loop.
ICxVariableContainer.Variable returns the loop variable declaration.

Public / Constructors

Cx​Statement​For​Each


public constructor CxStatementForEach → (3)

variable in : CxVariable

[not-null]
See ICxVariableContainer.Variable.

expression in : CxExpression

[not-null]
See ICxExpressionContainer.Expression.

statement in : CxStatement

[not-null]
See ICxStatementContainer.Statement.

Creates a new instance of CxStatementForEach.