O'Reilly logo

CLR via C#, 3rd Edition by Jeffrey Richter

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 16. Arrays

In this chapter:

Initializing Array Elements 388

Casting Arrays 390

All Arrays Are Implicitly Derived from System.Array 392

All Arrays Implicitly Implement IEnumerable, ICollection, and IList 393

Passing and Returning Arrays 394

Creating Non-Zero–Lower Bound Arrays 395

Array Access Performance 396

Unsafe Array Access and Fixed-Size Array 401

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, multidimensional 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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required