Class VBArrayValue.VBArrayDimension
The bounds of a single array dimension.
public record VBArrayValue.VBArrayDimension : IEquatable<VBArrayValue.VBArrayDimension>
- Inheritance
-
VBArrayValue.VBArrayDimension
- Implements
- Inherited Members
Constructors
VBArrayDimension(int, int)
The bounds of a single array dimension.
public VBArrayDimension(int LowerBound, int UpperBound)
Parameters
LowerBoundintThe lower subscript bound, returned by
LBound.UpperBoundintThe upper subscript bound, returned by
UBound.
Properties
IsInitialized
true when LowerBound is less than or equal to UpperBound.
public bool IsInitialized { get; }
Property Value
Length
The number of elements in this dimension. 0 when the bounds are inverted.
public int Length { get; }
Property Value
LowerBound
The lower subscript bound, returned by LBound.
public int LowerBound { get; init; }
Property Value
UpperBound
The upper subscript bound, returned by UBound.
public int UpperBound { get; init; }
Property Value
Methods
Deconstruct(out int, out int)
Deconstructs this dimension into its lower and upper bounds:
var (lower, upper) = arrayValue.Dimensions[0];
public void Deconstruct(out int lBound, out int uBound)