Table of Contents

Method EvaluateAsync

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

EvaluateAsync<T>(string)

Asynchronously evaluates the specified formula and returns the result as the specified type.

public virtual Task<T> EvaluateAsync<T>(string formula)

Parameters

formula string

The formula to evaluate. This must be a valid expression supported by the evaluation engine.

Returns

Task<T>

A task that represents the asynchronous operation. The task result contains the evaluated value of the formula, cast to the specified type T.

Type Parameters

T

The type to which the result of the formula evaluation will be cast.

Remarks

The evaluation process uses the default formula options, global object, and global type configured for the current instance. Ensure that the formula is compatible with the expected type T to avoid runtime casting errors.