Abstract
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.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsPreview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2010 Adam Freeman
About this chapter
Cite this chapter
Freeman, A. (2010). Arrays. In: Introducing Visual C# 2010. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-3172-1_13
Download citation
DOI: https://doi.org/10.1007/978-1-4302-3172-1_13
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4302-3171-4
Online ISBN: 978-1-4302-3172-1
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)