Class VBResizableArrayValue
A value representing a resizable (dynamically-sized) array.
public record VBResizableArrayValue : VBArrayValue, IEquatable<VBTypedValue>, IEquatable<VBArrayValue>, IEquatable<VBResizableArrayValue>
- Inheritance
-
VBResizableArrayValue
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
VBResizableArrayValue(IBindingHandle, (int lBound, int uBound)[], VBType?)
Creates a resizable array bound to handle (currently inert).
public VBResizableArrayValue(IBindingHandle handle, (int lBound, int uBound)[] dimensions, VBType? itemType = null)
Parameters
VBResizableArrayValue((int lBound, int uBound)[], VBType?, Func<VBTypedValue>?, Func<IBindingHandle>?)
Creates a new resizable array containing VBVariantValue elements unless specified otherwise.
public VBResizableArrayValue((int lBound, int uBound)[] dimensions, VBType? itemType = null, Func<VBTypedValue>? elementDefault = null, Func<IBindingHandle>? elementCell = null)
Parameters
dimensions(int lBound, int uBound)[]The lower and upper bound of each dimension.
itemTypeVBTypeThe element type; VBVariantType when unspecified.
elementDefaultFunc<VBTypedValue>What each element starts as, when it is more than the element type's own default value can say.
elementCellFunc<IBindingHandle>Makes the cell each element is stored in, when the runtime stores elements of
itemTypein cells of its own (ElementCellOf(VBType)).
Properties
Empty
Gets an empty (uninitialized) VBResizableArrayValue.
public static VBResizableArrayValue Empty { get; }