Chapter 6. .NET Collection Interfaces
After completing this chapter, you will be able to
Add enumeration interfaces to classes.
Add collection interfaces to classes.
Add list interfaces to classes.
Add dictionary interfaces to classes.
Enumerators (IEnumerable and IEnumerator) Overview
As you saw in Chapter 1, through Chapter 3, collections come in all shapes and sizes. They all have different ways that they can be manipulated and accessed. The way that each collection type interacts with the world is what makes each unique and useful. However, they all have one thing in common: they contain a collection of items. Traversing a stack, however, is done differently from traversing a list or dictionary. Your implementation of traversing a list might be ...
Get Developer’s Guide to Collections in Microsoft® .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.