Table of Contents

Class ParsedExpressionDelegate<TArg, TResult>

Namespace
LfrlAnvil.Computable.Expressions
Assembly
LfrlAnvil.Computable.Expressions.dll

Represents a compiled parsed expression.

public sealed class ParsedExpressionDelegate<TArg, TResult> : IParsedExpressionDelegate<TArg, TResult>

Type Parameters

TArg

Argument type.

TResult

Result type.

Inheritance
ParsedExpressionDelegate<TArg, TResult>
Implements
Inherited Members
Extension Methods

Properties

Arguments

Collection of named unbound arguments. Values for those arguments must be provided during delegate invocation.

public ParsedExpressionUnboundArguments Arguments { get; }

Property Value

ParsedExpressionUnboundArguments

Delegate

Underlying delegate.

public Func<TArg?[], TResult> Delegate { get; }

Property Value

Func<TArg[], TResult>

Methods

Invoke(params TArg?[])

Invokes this delegate.

[Pure]
public TResult Invoke(params TArg?[] arguments)

Parameters

arguments TArg[]

Argument values.

Returns

TResult

Invocation result.

Exceptions

InvalidParsedExpressionArgumentCountException

When not all Arguments received their value or too many values were provided.