Table of Contents

Class UInt32

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

A static uint value.

Return type is uint.

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

Constructors

UInt32()

Empty constructor for serialization.

public UInt32()

UInt32(uint)

Creates a uint expression.

public UInt32(uint value)

Parameters

value uint

The value.

Properties

Value

Gets and sets the value.

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

Property Value

uint

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.