Using Collections

This chapter is about the rich support in C# for handling collections such as arrays, bit arrays, queues, stacks, hash tables, and others. Collections are groupings of objects that support properties such as Count to hold the number of objects in the collection, and methods such as Add to add a new object to the collection. You can access members of the collection with various methods, such as using [] with arrays, Push and Pop methods with stacks, and so on.

As you become experienced in C#, you'll find yourself using collections more and more frequently as your code scales to larger applications. We've already worked with arrays throughout the booknow we'll see what they're capable of as we take a more in-depth look. After arrays, we'll continue with queues, stacks, hash tables and other collections, including how to create your own indexers to create your own collections.



Microsoft Visual C#. NET 2003 Kick Start
Microsoft Visual C#.NET 2003 Kick Start
ISBN: 0672325470
EAN: 2147483647
Year: 2002
Pages: 181

Similar book on Amazon

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