Class VBVariantValue
Represents a Variant value.
public record VBVariantValue : VBTypedValue, IEquatable<VBRuntimeEntity>, IEquatable<VBTypedValue>, IVBTypedValue<VBVariantValue, VBRuntimeVariantValue>, IEquatable<IVBTypedValue<VBVariantValue, VBRuntimeVariantValue>>, IEquatable<VBVariantValue>
- Inheritance
-
VBVariantValue
- Implements
- Inherited Members
Remarks
👉 The managed type of this value is a VBRuntimeVariantValue
Constructors
VBVariantValue(VBTypedValue)
Represents a Variant value.
public VBVariantValue(VBTypedValue TypedValue)
Parameters
TypedValueVBTypedValueThe wrapped typed value (may be another
Variant).
Remarks
👉 The managed type of this value is a VBRuntimeVariantValue
Properties
Size
The allocated size (in bytes) of this value.
public override int Size { get; }
Property Value
TypedValue
The wrapped typed value (may be another Variant).
public VBTypedValue TypedValue { get; init; }
Property Value
Value
Gets the underlying managed value corresponding to this typed value.
public VBRuntimeVariantValue Value { get; init; }
Property Value
Methods
Equals(IVBTypedValue<VBVariantValue, VBRuntimeVariantValue>?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(IVBTypedValue<VBVariantValue, VBRuntimeVariantValue>? other)
Parameters
otherIVBTypedValue<VBVariantValue, VBRuntimeVariantValue>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.
WithValue(VBTypedValue)
public VBVariantValue WithValue(VBTypedValue value)
Parameters
valueVBTypedValue