Arrays

Arrays are collection classes, built into C#. Arrays are a useful construct for organizing data. They provide matrix support and, even further, multidimensional support. As a collection, an array allows going beyond simple storage of data and provides fundamental discovery and manipulation of that data. Array methods are discussed in the next chapter. This chapter shows declaration and instantiation of single-dimension, multidimension, and jagged arrays.

For C++ Programmers

A C++ array is a pointer to a contiguous block of memory that is manipulated with pointers or indexes to store and retrieve data. C# arrays are objects with built-in functionality for operations such as sorting and determining length. C# array declarations place the ...

Get C# Unleashed 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.