Chapter 5. ARRAYS AND COLLECTIONS

IN BRIEF

This chapter explains and demonstrates the different types of arrays and collections that are available in the .NET Framework. In the first section, you will learn about the different Array types and how to use each one. Next, you will learn the basics of the .NET Collection classes and how to iterate through the collections. Finally, you will learn how to create you own collection by descending from System.Collections.CollectionBase.

WHAT YOU NEED

RECOMMENDED SOFTWARE.NET Framework C# .NET environment
RECOMMENDED HARDWARE.NET-enabled desktop client
SKILLS REQUIREDC# coding

ARRAYS AND COLLECTIONS AT A GLANCE

Using Arrays93  
 Understanding Single-Dimensional and Multidimensional Arrays93Explaining Jagged Arrays95
 Passing Arrays as Parameters96
Collection Basics98  
 Understanding the Basic Collection Interfaces98Iterating Through Collections98
Collections Provided by the Base Class Libraries99  
 Using an ArrayList100Using a BitArray103
 Using a Stack101Using the Queue104
 Using a Hashtable102Using a SortedList106
Creating Custom Collections107  
 Implementing the CollectionBase Class107Creating a AddressList Collection107
Summary109  
Further Reading110  

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.17.187.116