Table of Contents

Class VBVariantValue

Namespace
RDCore.SDK.Model.Values.Intrinsic
Assembly
RDCore.SDK.dll

Represents a Variant value.

public record VBVariantValue : VBTypedValue, IEquatable<VBRuntimeEntity>, IEquatable<VBTypedValue>, IVBTypedValue<VBVariantValue, VBVariantInteropValue>, IEquatable<IVBTypedValue<VBVariantValue, VBVariantInteropValue>>, IEquatable<VBVariantValue>
Inheritance
VBVariantValue
Implements
Inherited Members

Remarks

👉 The managed type of this value is a VBVariantInteropValue

Constructors

VBVariantValue(VBTypedValue, Symbol)

Represents a Variant value.

public VBVariantValue(VBTypedValue TypedValue, Symbol Symbol)

Parameters

TypedValue VBTypedValue

The wrapped typed value (may be another Variant).

Symbol Symbol

The symbol associated with this value.

Remarks

👉 The managed type of this value is a VBVariantInteropValue

Properties

BoxedValue

Gets the boxed (object) underlying managed value.

public override object BoxedValue { get; }

Property Value

object

Remarks

👉 This member is provided as a non-generic convenience for contexts where the type is unknown. Use the generic ITypedValue<T> whenever possible instead.

Size

The allocated size (in bytes) of this value.

public override int Size { get; }

Property Value

int

Symbol

The symbol associated with this value.

public Symbol Symbol { get; init; }

Property Value

Symbol

TypedValue

The wrapped typed value (may be another Variant).

public VBTypedValue TypedValue { get; init; }

Property Value

VBTypedValue

Value

Gets the underlying managed value corresponding to this typed value.

public VBVariantInteropValue Value { get; init; }

Property Value

VBVariantInteropValue

Methods

Equals(IVBTypedValue<VBVariantValue, VBVariantInteropValue>?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(IVBTypedValue<VBVariantValue, VBVariantInteropValue>? other)

Parameters

other IVBTypedValue<VBVariantValue, VBVariantInteropValue>

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

WithValue(VBTypedValue)

public VBVariantValue WithValue(VBTypedValue value)

Parameters

value VBTypedValue

Returns

VBVariantValue