Docs · API reference · Verso.Abstractions

VariableDescriptor Class#

Describes a variable stored in a kernel's variable store.

public sealed record VariableDescriptor : System.IEquatable<Verso.Abstractions.VariableDescriptor>

Inheritance System.Object → VariableDescriptor

Implements System.IEquatable<VariableDescriptor>

Constructors#

VariableDescriptor(string, object, Type, string) Constructor#

Describes a variable stored in a kernel's variable store.

public VariableDescriptor(string Name, object? Value, System.Type Type, string? KernelId=null);

Parameters#

Name System.String

The name of the variable.

Value System.Object

The current value of the variable, or null if it has not been assigned.

Type System.Type

The CLR type of the variable.

KernelId System.String

The identifier of the kernel that owns this variable, or null if it belongs to the default kernel.

Properties#

KernelId Property#

The identifier of the kernel that owns this variable, or null if it belongs to the default kernel.

public string? KernelId { get; init; }

Property Value#

System.String

Name Property#

The name of the variable.

public string Name { get; init; }

Property Value#

System.String

Type Property#

The CLR type of the variable.

public System.Type Type { get; init; }

Property Value#

System.Type

Value Property#

The current value of the variable, or null if it has not been assigned.

public object? Value { get; init; }

Property Value#

System.Object