System.Collections.Generic namespace contains generic classes that allow us to create collections of specific types. As you saw in Fig. 21.2, many of the classes are simply generic versions of nongeneric collections. A couple of classes implement new data structures. Here, we demonstrate generic collections
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 nongeneric, all of which implement the
IDictionary interface (described in Fig. 21.1). The app in Fig. 21.8 is a modification of Fig. ...