Class ForExpression.LoopBuilder
Represents expression builder.
Inherited Members
Namespace: DotNext.Linq.Expressions
Assembly: DotNext.Metaprogramming.dll
Syntax
public sealed class ForExpression.LoopBuilder : ISupplier<ForExpression>, IFunctional<Func<ForExpression>>
Methods
| Edit this page View SourceBuild()
Constructs a new instance of ForExpression.
Declaration
public ForExpression Build()
Returns
Type | Description |
---|---|
ForExpression | The constructed instance of ForExpression. |
Do(Statement)
Defines loop body.
Declaration
public ForExpression.LoopBuilder Do(ForExpression.LoopBuilder.Statement body)
Parameters
Type | Name | Description |
---|---|---|
ForExpression.LoopBuilder.Statement | body | A delegate used to construct loop body. |
Returns
Type | Description |
---|---|
ForExpression.LoopBuilder |
|
See Also
| Edit this page View SourceIterate(Iteration)
Constructs loop iteration statement.
Declaration
public ForExpression.LoopBuilder Iterate(ForExpression.LoopBuilder.Iteration iteration)
Parameters
Type | Name | Description |
---|---|---|
ForExpression.LoopBuilder.Iteration | iteration | A delegate used to construct iteration statement. |
Returns
Type | Description |
---|---|
ForExpression.LoopBuilder |
|
While(Condition)
Defines loop condition.
Declaration
public ForExpression.LoopBuilder While(ForExpression.LoopBuilder.Condition condition)
Parameters
Type | Name | Description |
---|---|---|
ForExpression.LoopBuilder.Condition | condition | A delegate used to construct condition. |
Returns
Type | Description |
---|---|
ForExpression.LoopBuilder |
|