Arrays and Parameterized Properties

Arrays are another important data type in practical programming. In VB.NET, arrays are objects. They are a reference data type. They are based on the class System.Array and so inherit the properties and methods of this class. After examining one-dimensional arrays, we examine two higher dimensional varieties known as jagged and rectangular arrays. A jagged array is an array of arrays, and each row can have a different number of elements. In rectangular arrays, all rows have the same number of elements. Arrays are a special kind of collection, which means that the For Each loop can be used for iterating through array elements.

We conclude the section with a discussion of parameterized default properties, which ...

Get Application Development Using Visual Basic® and .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.