Method EvaluateExpressionAsync
EvaluateExpressionAsync(ExpressionEvaluationRequest, CancellationToken)
When implemented by a class, evaluates an expression based on the current stack frame. If the expression can be parsed but not evaluated, an object is returned but will not contain a valid value.
public Task<ExpressionEvaluationResult> EvaluateExpressionAsync(ExpressionEvaluationRequest request, CancellationToken cancellationToken = default)
Parameters
request
ExpressionEvaluationRequestcancellationToken
CancellationToken
Returns
EvaluateExpressionAsync(string, CancellationToken)
public Task<EvaluationResult> EvaluateExpressionAsync(string expression, CancellationToken cancellationToken)
Parameters
expression
stringcancellationToken
CancellationToken