Chapter 26. C# Collections
In This Chapter
Pre-Existing Collections
Collection Interfaces
Creating a Collection
Collection classes are data structures in the System.Collections namespace. They provide various ways to manage data for a C# program. They can be used in place of arrays for more sophisticated management of a group of object. Some of the more popular collections are those that manage data as dynamically resizable arrays, hashtables, queues, and stacks.
It's easy to use collection classes because they incorporate array-like semantics. This includes indexer access to collection elements and the IEnumerable interface for iterating through collection elements.
Get C# 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.