Chapter 5: Arrays


Overview

If you need to work with multiple objects of the same type, you can use collections and arrays. C# has a special notation to declare and use arrays. Behind the scenes, the Array class comes into play that offers several methods to sort and filter the elements inside the array.

Using an enumerator, you can iterate through all the elements of an array.

This chapter discusses the following:

  • Simple arrays

  • Multidimensional arrays

  • Jagged arrays

  • Array class

  • Interfaces for arrays

  • Enumerations




Professional C# 2005 with .NET 3.0
Professional C# 2005 with .NET 3.0
ISBN: 470124725
EAN: N/A
Year: 2007
Pages: 427

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net