Class ForExpression.LoopBuilder
Represents expression builder.
Inherited Members
Namespace: DotNext.Linq.Expressions
Assembly: DotNext.Metaprogramming.dll
Syntax
public sealed class LoopBuilder : ForExpression.IBuilder, ILoopLabels, IExpressionBuilder<ForExpression>
Methods
| Improve this Doc View SourceBuild()
Constructs a new instance of ForExpression.
Declaration
public ForExpression Build()
Returns
Type | Description |
---|---|
ForExpression | The constructed instance of ForExpression. |
Do(ForExpression.LoopBuilder.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
| Improve this Doc View SourceIterate(ForExpression.LoopBuilder.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(ForExpression.LoopBuilder.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 |
|
See Also
Extension Methods
ObjectExtensions.Decompose<T, TResult1, TResult2>(T, ValueFunc<T, TResult1>, ValueFunc<T, TResult2>)