Interface IExpression
- Namespace
- Albatross.Expression.Nodes
- Assembly
- Albatross.Expression.dll
Represents an evaluable expression that can be executed with a given context.
public interface IExpression : IToken
- Inherited Members
- Extension Methods
Methods
Eval(Func<string, object>)
Evaluates the expression synchronously using the provided context function.
object Eval(Func<string, object> context)
Parameters
Returns
- object
The result of evaluating the expression.
EvalAsync(Func<string, Task<object>>)
Evaluates the expression asynchronously using the provided context function.
Task<object> EvalAsync(Func<string, Task<object>> context)
Parameters
contextFunc<string, Task<object>>A function that asynchronously resolves variable names to their values.