Show / Hide Table of Contents

Class ForExpression

Represents for loop as expression.

Inheritance
Object
ForExpression
Namespace: DotNext.Linq.Expressions
Assembly: DotNext.Metaprogramming.dll
Syntax
public sealed class ForExpression : Expression, ILoopLabels

Properties

| Improve this Doc View Source

Body

Gets body of this loop.

Declaration
public Expression Body { get; }
Property Value
Type Description
Expression
| Improve this Doc View Source

BreakLabel

Gets label that is used by the loop body as a break statement target.

Declaration
public LabelTarget BreakLabel { get; }
Property Value
Type Description
LabelTarget
| Improve this Doc View Source

CanReduce

Always returns true because this expression is .

Declaration
public override bool CanReduce { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

ContinueLabel

Gets label that is used by the loop body as a continue statement target.

Declaration
public LabelTarget ContinueLabel { get; }
Property Value
Type Description
LabelTarget
| Improve this Doc View Source

Initialization

Represents loop variable initialization expression.

Declaration
public Expression Initialization { get; }
Property Value
Type Description
Expression
| Improve this Doc View Source

LoopVar

Represents loop variable initialized by Initialization.

Declaration
public ParameterExpression LoopVar { get; }
Property Value
Type Description
ParameterExpression
| Improve this Doc View Source

NodeType

Always returns .

Declaration
public override ExpressionType NodeType { get; }
Property Value
Type Description
ExpressionType
| Improve this Doc View Source

Test

Represents condition of the loop continuation.

Declaration
public Expression Test { get; }
Property Value
Type Description
Expression
| Improve this Doc View Source

Type

Always returns .

Declaration
public override Type Type { get; }
Property Value
Type Description
Type

Methods

| Improve this Doc View Source

Builder(Expression)

Creates a builder of ForExpression.

Declaration
public static ForExpression.LoopBuilder Builder(Expression initialization)
Parameters
Type Name Description
Expression initialization

Loop variable initialization expression.

Returns
Type Description
ForExpression.LoopBuilder

A new instance of builder.

| Improve this Doc View Source

Reduce()

Translates this expression into predefined set of expressions using Lowering technique.

Declaration
public override Expression Reduce()
Returns
Type Description
Expression

Translated expression.

Extension Methods

AsyncLockAcquisition.AcquireLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireReadLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireReadLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireUpgradeableReadLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireUpgradeableReadLockAsync<T>(T, CancellationToken)
ExpressionBuilder.Const<T>(T)
ObjectExtensions.GetUserData<T>(T)
ObjectExtensions.IsOneOf<T>(T, IEnumerable<T>)
ObjectExtensions.IsOneOf<T>(T, T[])
ObjectExtensions.Decompose<T, R1, R2>(T, Func<T, R1>, Func<T, R2>, out R1, out R2)
ObjectExtensions.Decompose<T, R1, R2>(T, ValueFunc<T, R1>, ValueFunc<T, R2>, out R1, out R2)
ObjectExtensions.Decompose<T, R1, R2>(T, Func<T, R1>, Func<T, R2>)
ObjectExtensions.Decompose<T, R1, R2>(T, ValueFunc<T, R1>, ValueFunc<T, R2>)
LockAcquisition.AcquireReadLock<T>(T)
LockAcquisition.AcquireReadLock<T>(T, TimeSpan)
LockAcquisition.AcquireWriteLock<T>(T)
LockAcquisition.AcquireWriteLock<T>(T, TimeSpan)
LockAcquisition.AcquireUpgradeableReadLock<T>(T)
LockAcquisition.AcquireUpgradeableReadLock<T>(T, TimeSpan)

See Also

for Statement
  • Improve this Doc
  • View Source
Back to top Generated by DocFX