Show / Hide Table of Contents

Class WithExpression

Provides an expression refer to a single object or structure so that body can use a simplified syntax when accessing member of the object or structure.

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

Properties

| Improve this Doc View Source

Body

Gets body of the statement.

Declaration
public Expression Body { get; }
Property Value
Type Description
Expression
| 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

NodeType

Always returns .

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

Type

Gets type of this expression.

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

Variable

The expression representing referred object inside of Body.

Declaration
public ParameterExpression Variable { get; }
Property Value
Type Description
ParameterExpression

Methods

| Improve this Doc View Source

Create(Expression, WithExpression.Statement)

Creates a new instance of WithExpression.

Declaration
public static WithExpression Create(Expression obj, WithExpression.Statement body)
Parameters
Type Name Description
Expression obj

The object to be referred inside of the body.

WithExpression.Statement body

The body of the expression.

Returns
Type Description
WithExpression

The constructed expression.

| Improve this Doc View Source

Create(Expression, Expression)

Creates a new instance of WithExpression.

Declaration
public static WithExpression Create(Expression obj, Expression body)
Parameters
Type Name Description
Expression obj

The object to be referred inside of the body.

Expression body

The body of the expression.

Returns
Type Description
WithExpression

The constructed expression.

| 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.

| Improve this Doc View Source

Update(Expression)

Reconstructs WithExpression with a new body.

Declaration
public WithExpression Update(Expression body)
Parameters
Type Name Description
Expression body

A new body to be placed into this expression.

Returns
Type Description
WithExpression

The expression updated with the given body.

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

With..End Statement
  • Improve this Doc
  • View Source
Back to top Generated by DocFX