Show / Hide Table of Contents

Class ForExpression.LoopBuilder

Represents expression builder.

Inheritance
object
ForExpression.LoopBuilder
Implements
ISupplier<ForExpression>
IFunctional
Inherited Members
object.GetType()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: DotNext.Linq.Expressions
Assembly: DotNext.Metaprogramming.dll
Syntax
public sealed class ForExpression.LoopBuilder : ISupplier<ForExpression>, IFunctional

Methods

View Source

Build()

Constructs a new instance of ForExpression.

Declaration
public ForExpression Build()
Returns
Type Description
ForExpression

The constructed instance of ForExpression.

View Source

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

this builder.

See Also
ForExpression.LoopBuilder.Statement
View Source

Iterate(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

this builder.

View Source

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

this builder.

See Also
ForExpression.LoopBuilder.Condition

Implements

ISupplier<TResult>
IFunctional

Extension Methods

BasicExtensions.As<T>(T)
BasicExtensions.IsBetween<T, TLowerBound, TUpperBound>(T, TLowerBound, TUpperBound)
BasicExtensions.IsOneOf<T>(T, params ReadOnlySpan<T>)

See Also

Builder(Expression)
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾