Class TypedXPath2Expression<TValue>

Assembly: redb.Route.XPath2.dll

An XPath 2.0 expression that remembers the CLR type its result should take, so a pipeline
asking for Evaluate<object> still gets that type.

public sealed class TypedXPath2Expression<TValue> : Expression, IExpression

Inheritance

Object→Expression→TypedXPath2Expression<TValue>

Implements

Inherited Members

Methods

Evaluate<T>(IExchange)

Evaluates the expression and returns the result cast to T.

public override T Evaluate<T>(IExchange exchange)

From(IExpression)

Returns the same expression reading source instead of the message body.

public TypedXPath2Expression<TValue> From(IExpression source)

SetValue(IExchange, object)

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

public override void SetValue(IExchange exchange, object value)

Trimmed(bool)

Returns the same expression with whitespace trimmed off the text it extracts.

public TypedXPath2Expression<TValue> Trimmed(bool trim = true)

WithParameters(params (string Name, IExpression Value)[])

Returns the same expression with named XPath variables bound to expressions, so a value from

public TypedXPath2Expression<TValue> WithParameters(params (string Name, IExpression Value)[] parameters)

Constructors

TypedXPath2Expression(string)

Creates a typed XPath 2.0 expression.