Skip to Main Content
C# Cookbook, 2nd Edition
book

C# Cookbook, 2nd Edition

by Jay Hilyard, Stephen Teilhet
January 2006
Intermediate to advanced content levelIntermediate to advanced
1184 pages
43h 23m
English
O'Reilly Media, Inc.
Content preview from C# Cookbook, 2nd Edition
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
280
Chapter 5
CHAPTER 5
Collections
5.0 Introduction
Collections are groups of items; in .NET, collections contain objects (including boxed
value types). Each object contained in a collection is called an element. Some collec-
tions contain a straightforward list of elements, while others (dictionaries) contain a
list of key and value pairs. The following collection types consist of a straightfor-
ward list of elements:
System.Collections.ArrayList
System.Collections.BitArray
System.Collections.Queue
System.Collections.Stack
System.Collections.Generic.LinkedList<T>
System.Collections.Generic.List<T>
System.Collections.Generic.Queue<T>
System.Collections.Generic.Stack<T>
The following collection types are dictionaries:
System.Collections.Hashtable
System.Collections.SortedList
System.Collections.Generic.Dictionary<T,U>
System.Collections.Generic.SortedList<T,U>
These collection classes are organized under the System.Collections and the System.
Collections.Generic
namespaces. In addition to these namespaces, another namespace
called
System.Collections.Specialized contains a few more useful collection classes.
These classes might not be as well known as the previous classes, so here is a short
explanation of the collection classes under the
System.Collections.Specialized
namespace:
This is the Title of ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

C# Cookbook

C# Cookbook

Stephen Teilhet, Jay Hilyard
C# Cookbook

C# Cookbook

Joe Mayo
Head First C#, 4th Edition

Head First C#, 4th Edition

Andrew Stellman, Jennifer Greene

Publisher Resources

ISBN: 0596100639Supplemental ContentCatalog PageErrata