Class VBObjectValue
Represents a VBObjectType value, i.e. an object reference.
public record VBObjectValue : VBTypedValue, IEquatable<VBRuntimeEntity>, IEquatable<VBTypedValue>, IVBTypedValue<VBObjectValue, int>, IEquatable<IVBTypedValue<VBObjectValue, int>>, IEquatable<VBObjectValue>
- Inheritance
-
VBObjectValue
- Implements
- Derived
- Inherited Members
Remarks
The default value of a VBObjectValue is VBNothingValue.
Constructors
VBObjectValue(Symbol)
public VBObjectValue(Symbol symbol)
Parameters
symbolSymbol
Properties
BoxedValue
Gets the boxed (object) underlying managed value.
public override object BoxedValue { get; }
Property Value
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.
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 int Value { get; init; }
Property Value
Methods
Equals(IVBTypedValue<VBObjectValue, int>?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(IVBTypedValue<VBObjectValue, int>? other)
Parameters
otherIVBTypedValue<VBObjectValue, int>An object to compare with this object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
IsNothing()
public bool IsNothing()