Show / Hide Table of Contents

Class ExpressionBuilder<E>

Represents compound expression builder.

Inheritance
Object
ExpressionBuilder<E>
ConditionalBuilder
MatchBuilder
SwitchBuilder
TryBuilder
Namespace: DotNext.Metaprogramming
Assembly: DotNext.Metaprogramming.dll
Syntax
public abstract class ExpressionBuilder<E> : object, IExpressionBuilder<E> where E : Expression
Type Parameters
Name Description
E

Type of expression to be constructed.

Remarks

Any derived expression builder is not thread-safe and event cannot be shared between threads.

Methods

| Improve this Doc View Source

End()

Finalizes construction of the expression and adds constructed expression as statement to the entire lexical scope.

Declaration
public void End()
| Improve this Doc View Source

OfType(Type)

Changes type of the expression.

Declaration
public ExpressionBuilder<E> OfType(Type expressionType)
Parameters
Type Name Description
Type expressionType

The expression type.

Returns
Type Description
ExpressionBuilder<E>

This builder.

Remarks

By default, type of expression is .

| Improve this Doc View Source

OfType<T>()

Changes type of the expression.

Declaration
public ExpressionBuilder<E> OfType<T>()
Returns
Type Description
ExpressionBuilder<E>

This builder.

Type Parameters
Name Description
T

The expression type.

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)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX