Chapter 16. Arrays

In this chapter:

Initializing Array Elements

Casting Arrays

All Arrays Are Implicitly Derived from System.Array

All Arrays Implicitly Implement IEnumerable, ICollection, and IList

Passing and Returning Arrays

Creating Non-Zero Lower Bound Arrays

Array Internals

Unsafe Array Access and Fixed-Size Array

Arrays are mechanisms that allow you to treat several items as a single collection. The Microsoft .NET common language runtime (CLR) supports single-dimensional arrays, multi-dimensional arrays, and jagged arrays (that is, arrays of arrays). All array types are implicitly derived from the System.Array abstract class, which itself is derived from System.Object. This means that arrays are always reference types that are allocated on the managed ...

Get CLR via C#, Fourth Edition 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.