26.5. Generic Collections
The System.Collections.Generic namespace in the FCL is a new addition for .NET 2.0. This namespace contains generic classes that allow us to create collections of specific types. As you saw in Fig. 26.2, many of the classes are simply generic versions of non-generic collections. A few classes implement new data structures. In this section, we demonstrate generic collections SortedDictionary and LinkedList.
26.5.1. Generic Class SortedDictionary
A dictionary is the general term for a collection of key–value pairs. A hash table is one way to implement a dictionary. The .NET Framework provides several implementations of dictionaries, both generic and non-generic (all of which implement the IDictionary interface in Fig. ...
Get Visual Basic 2005 for Programmers: Deitel Developer Series, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.