Class ForEachBlock
'For each' block
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Models
Assembly: Microsoft.ML.Probabilistic.Compiler.dll
Syntax
public class ForEachBlock : StatementBlock, IDisposable, IStatementBlock, HasRange
Constructors
ForEachBlock(Range)
Constructs 'for each' block from a range
Declaration
public ForEachBlock(Range range)
Parameters
| Type | Name | Description |
|---|---|---|
| Range | range | The range |
Fields
range
Range associated with the 'for each' block
Declaration
protected Range range
Field Value
| Type | Description |
|---|---|
| Range |
Properties
Index
The index variable associated with the range
Declaration
public Variable<int> Index { get; }
Property Value
| Type | Description |
|---|---|
| Variable<Int32> |
Range
Range associated with the 'for each' block
Declaration
public Range Range { get; }
Property Value
| Type | Description |
|---|---|
| Range |
Methods
ToString()
ToString override
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| String |