Class VBTypedValue
Represents any typed value.
public abstract record VBTypedValue : VBRuntimeEntity, IEquatable<VBRuntimeEntity>, IEquatable<VBTypedValue>
- Inheritance
-
VBTypedValue
- Implements
- Derived
- Inherited Members
Remarks
This class is at the base of the type hierarchy for all typed values.
Constructors
VBTypedValue(VBType)
Represents any typed value.
protected VBTypedValue(VBType TypeInfo)
Parameters
TypeInfoVBTypeThe
VBTypeof the value.
Remarks
This class is at the base of the type hierarchy for all typed values.
VBTypedValue(VBType, IRuntimeValue)
protected VBTypedValue(VBType typeInfo, IRuntimeValue value)
Parameters
typeInfoVBTypevalueIRuntimeValue
VBTypedValue(VBType, VBRuntimeReference)
protected VBTypedValue(VBType typeInfo, VBRuntimeReference reference)
Parameters
typeInfoVBTypereferenceVBRuntimeReference
VBTypedValue(VBType, VBRuntimeVariantValue)
protected VBTypedValue(VBType typeInfo, VBRuntimeVariantValue variant)
Parameters
typeInfoVBTypevariantVBRuntimeVariantValue
Properties
Handle
public IBindingHandle Handle { get; init; }
Property Value
Size
The allocated size (in bytes) of this value.
public abstract int Size { get; }
Property Value
UnderlyingValue
Gets a wrapper for the underlying runtime value.
public VBRuntimeValueWrapper UnderlyingValue { get; init; }
Property Value
Remarks
This wrapper is a crutch, it must eventually disappear.
Methods
Describe()
Creates a new VBTypeDescValue that describes this value.
public VBTypeDescValue Describe()
Returns
GetTargetType()
Gets the described Target type of this value if the value is a VBTypeDescValue; yields the TypeInfo of this value otherwise.
public VBType GetTargetType()
Returns
Remarks
👉 The TypeInfo of a type descriptor value is a VBTypeDesc.
WithValue(VBRuntimeValueWrapper)
public VBTypedValue WithValue(VBRuntimeValueWrapper value)
Parameters
valueVBRuntimeValueWrapper