3.9. Collections

Collections in the Microsoft .NET Framework class library are implemented in the System.Collections namespace. Here we will find various collections of objects, such as lists, queues, hash tables, and dictionaries. Also, this namespace contains several interfaces used to define some basic functionality for collections. The partial contents of the System.Collections namespace are shown in Figure 3.13.

Figure 3.13. Partial contents of the System.Collections namespace

We will start with a brief overview of the interfaces, then we will discuss various collections. As we remember, interfaces are used to define some functionality ...

Get A Programmer's Guide to .NET 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.