Collection Basics
Collections are groups of items or as in C#, objects. In C# .NET, each built-in collection implements the ICollection interface. Because the ICollection interface inherits from the IEnumerable interface, each built-in collection also implements the IEnumerable interface. In the following sections, you will gain a basic knowledge of what collections are and how they operate.
Understanding the Basic Collection Interfaces
These are collections that are provided with C#, out of the box; they all reside in the System.Collections namespace. Each implements the ICollection interface. Table 5.2 shows the members of the ICollection interface.
Member | Description |
---|---|
GetEnumerator | This method returns an Enumerator ... |
Get Microsoft® Visual C#® .NET 2003 Unleashed 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.