In this chapter, we explored the different kinds of arrays that C# supports and the features that each kind has to offer. The most commonly used is the single-dimensional array that dominates this chapter. This kind of array allows you group together related objects in a simple and efficient way. We also looked at multidimensional arrays, which can be used to express more complex relationships between objects. They are less frequently used and can become complex and confusing to use as the number of dimensions increases. We saw how arrays of all types can be used, enumerated, and populated, as well as how to use the members inherited from the System.Array class to perform common array-related tasks.
KeywordsCode Statement Reference Type Array Type Length Property Rectangular Array
Unable to display preview. Download preview PDF.