(Updated: 2000.10.02 02:07:52 PM)
| |
Non-zero based arrays are not CLS compliant:
CLS Rule 14: Arrays elements must have a CLS-compliant type, a fixed number
of dimensions, and all dimensions of the array must have zero lower bounds.
While the abstract type System.Array is considered CLS-compliant it does
have types that inherit from it but are not CLS-compliant.
However, they can be created. From an example by
PhilWeber:
Dim arr(3 To 5) As Integer
becomes:
Dim arr As Array = System.Array.CreateInstance(GetType(Integer), _
New Integer() {5}, New Integer() {3})
CategoryDotNet CategoryVBDotNet