Table of Contents

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.

This json example returns a list with the values 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

context RuntimeContext

The current runtime context.

returnType Type

The expected return type. Use typeof(object) for a generic result. Use null if you don't need the return value.

Returns

Task<object>

Returns the result of the expression.