Class VBArrayValue
A VBTypedValue representing a runtime value of the VBArrayType data type.
public abstract record VBArrayValue : VBTypedValue, IEquatable<VBRuntimeEntity>, IEquatable<VBTypedValue>, IEquatable<VBArrayValue>
- Inheritance
-
VBArrayValue
- Implements
- Derived
- Inherited Members
Constructors
VBArrayValue(Symbol, (int lBound, int uBound)[], VBType)
Creates a new VBTypedValue representing a runtime value of the VBArrayType data type.
protected VBArrayValue(Symbol symbol, (int lBound, int uBound)[] dimensions, VBType itemType)
Parameters
symbolSymbolThe Symbol associated with this value.
dimensions(int lBound, int uBound)[]An array of value tuples defining the size of each dimension of this VBArrayValue.
itemTypeVBTypeThe data type of the items in this array. Use VBVariantType if the declared data type is unspecified.
Properties
Dimensions
Gets an immutable array of VBArryaDimension each holding a dimensional slice of the array value.
public ImmutableArray<VBArrayValue.VBArrayDimension> Dimensions { get; init; }
Property Value
IsInitialized
true if the array value contains any dimensions.
public bool IsInitialized { get; }
Property Value
ItemType
The declared VBType of the items in this array.
public VBType ItemType { get; init; }
Property Value
Size
The allocated size (in bytes) of this value.
public override int Size { get; }