Arrays

Arrays are reference types. Arrays can be described as container objects that contain a list of references to the data stored in specific memory locations. This list of references comprises the elements or members of an array. These elements are zero indexed, that is, the first element has the index 0, the second element 1, and so on. Elements are accessed through these indexes. All arrays have a rank that specifies the number of indexes that can be associated with an element. This rank can also be referred to as the dimension. The array type aliases the System.Array type. Arrays can be declared for any type of data. However, all the elements of an array have to be of the same type. Arrays are classified under collection types. Arrays ...

Get Special Edition Using C# 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.