Share via


EvaluateExpressionDelegate Delegate

Definition

Delegate to evaluate an expression.

public delegate (object value, string error) EvaluateExpressionDelegate(Expression expression, IMemory state, Options options);
type EvaluateExpressionDelegate = delegate of Expression * IMemory * Options -> ValueTuple<obj, string>
Public Delegate Function EvaluateExpressionDelegate(expression As Expression, state As IMemory, options As Options) As ValueTuple(Of Object, String) 

Parameters

expression
Expression

Expression to evaluate.

state
IMemory

Global state information.

options
Options

Options for the evaluation.

Return Value

Value and error string that is non-null if there is an error.

Remarks

Evaluators should verify runtime arguments when appropriate and return an error rather than throw exceptions if possible.

Applies to