Class VBObjectValue
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
handleIBindingHandle
VBObjectValue(VBRuntimeObjectId)
public VBObjectValue(VBRuntimeObjectId objectId)
Parameters
objectIdVBRuntimeObjectId
Properties
Nothing
public static VBObjectValue Nothing { get; }
Property Value
Size
The allocated size (in bytes) of this value.
public override int Size { get; }
Property Value
Value
Gets the underlying managed value corresponding to this typed value.
public VBRuntimeObjectId Value { get; }
Property Value
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
otherIVBTypedValue<VBObjectValue, VBRuntimeObjectId>An object to compare with this object.
Returns
IsNothing()
public bool IsNothing()