Table of Contents

Class VBObjectValue

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

Represents a VBObjectType value, i.e. an object reference.

public record VBObjectValue : VBTypedValue, IEquatable<VBTypedValue>, IVBTypedValue<VBObjectValue, VBRuntimeObjectId>, IEquatable<IVBTypedValue<VBObjectValue, VBRuntimeObjectId>>, IEquatable<VBObjectValue>
Inheritance
VBObjectValue
Implements
Derived
Inherited Members

Remarks

The default value of a VBObjectValue is VBNothingValue. Unlike VBUserDefinedTypeValue/VBArrayValue, identity here is a VBRuntimeObjectId minted by ISessionObjects.CreateObject — a live object's instance fields are addressed by their own, per-instance table, not by one flat MemoryAddress block, so there is no single address to reference here.

Constructors

VBObjectValue(IBindingHandle)

public VBObjectValue(IBindingHandle handle)

Parameters

handle IBindingHandle

VBObjectValue(VBRuntimeObjectId)

public VBObjectValue(VBRuntimeObjectId objectId)

Parameters

objectId VBRuntimeObjectId

Properties

Nothing

public static VBObjectValue Nothing { get; }

Property Value

VBObjectValue

Size

The allocated size (in bytes) of this value.

public override int Size { get; }

Property Value

int

Value

Gets the underlying managed value corresponding to this typed value.

public VBRuntimeObjectId Value { get; }

Property Value

VBRuntimeObjectId

Methods

Equals(IVBTypedValue<VBObjectValue, VBRuntimeObjectId>?)

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

public bool Equals(IVBTypedValue<VBObjectValue, VBRuntimeObjectId>? other)

Parameters

other IVBTypedValue<VBObjectValue, VBRuntimeObjectId>

An object to compare with this object.

Returns

bool

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

IsNothing()

public bool IsNothing()

Returns

bool