Class List
- Namespace
- BotManager.Runtime.Expressions
- Assembly
- BotManager.Runtime.dll
A list of IExpression that will be executed sequentially.
The returned values of the expressions is returns as an array if returnType is not set to null.
Return type is Array or null.
1, 2, 3:
[ 1, 2, 3 ]
[JsonConverter(typeof(ListConverter<List>))]
public sealed class List : List<IExpression?>, IList<IExpression?>, ICollection<IExpression?>, IList, ICollection, IReadOnlyList<IExpression?>, IReadOnlyCollection<IExpression?>, IEnumerable<IExpression?>, IEnumerable, IExpression
- Inheritance
-
List
- Implements
- Inherited Members
Constructors
List()
public List()
Methods
ExecuteAsync(RuntimeContext, Type?)
Executes the expression in the given RuntimeContext. Please do not use this method to run an expression. Use ExecuteAsync(IExpression?) instead.
public Task<object?> ExecuteAsync(RuntimeContext context, Type? returnType)
Parameters
contextRuntimeContextThe current runtime context.
returnTypeTypeThe expected return type. Use
typeof(object)for a generic result. Usenullif you don't need the return value.