Class DelegateExpression<T>

Assembly: redb.Route.dll

An expression based on a delegate (function) that evaluates its value from an .

public class DelegateExpression<T> : Expression, IExpression

Inheritance

Object→Expression→DelegateExpression<T>

Implements

Inherited Members

Methods

Evaluate<K>(IExchange)

Evaluates the expression and returns the result cast to T.

public override K Evaluate<K>(IExchange exchange)

SetValue(IExchange, object)

Sets a value in the exchange according to this expression's semantics.

public override void SetValue(IExchange exchange, object value)

Constructors

DelegateExpression(Func<IExchange, T>)

Initializes a new instance of the class with the specified delegate.