Table of Contents

Class Int64

Namespace
BotManager.Runtime.Expressions
Assembly
BotManager.Runtime.dll

A static long value.

Return type is long.

This json example returns 10:
{ "$Int64": 10 }
[JsonConverter(typeof(Int64Converter))]
public sealed class Int64 : IExpression
Inheritance
Int64
Implements
Inherited Members

Constructors

Int64()

Empty constructor for serialization.

public Int64()

Int64(long)

Creates a int expression.

public Int64(long value)

Parameters

value long

The value.

Properties

Value

Gets and sets the value.

[JsonRootProperty]
public long Value { get; set; }

Property Value

long

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.