Table of Contents

Class VBArrayValue.VBArrayDimension

Namespace
RDCore.SDK.Model.Values.Intrinsic
Assembly
RDCore.SDK.dll

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

LowerBound int

The lower subscript bound, returned by LBound.

UpperBound int

The upper subscript bound, returned by UBound.

Properties

IsInitialized

true when LowerBound is less than or equal to UpperBound.

public bool IsInitialized { get; }

Property Value

bool

Length

The number of elements in this dimension. 0 when the bounds are inverted.

public int Length { get; }

Property Value

int

LowerBound

The lower subscript bound, returned by LBound.

public int LowerBound { get; init; }

Property Value

int

UpperBound

The upper subscript bound, returned by UBound.

public int UpperBound { get; init; }

Property Value

int

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)

Parameters

lBound int
uBound int