EvaluateExpressionDelegate Delegate
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.