Chapter 9. Arrays and Collections
Arrays are types that enable you to store a series of elements. Every array can be thought of as being two parts in one. The first part is the array object, which is an instance of the class System.Array
. This object stores information about the array itself—things like the number of elements in the array, the number of dimensions, and whether the array has a non-zero lower bound or not. The second part is the storage for the elements in the array.
There are two main types of arrays: arrays of valuetypes and arrays of reference types. Valuetypes include the language’s native data types, such as integers, longs, doubles, etc. Valuetypes also include structures. Reference types include classes that produce objects, ...
Get C# Web Development with ASP.NET: Visual QuickStart Guide 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.