Hour 16. Collections and Arrays

Any time you need to store and retrieve large amounts of resources or objects, you normally use a collection. A collection groups similar objects together and gives you the ability to insert, delete, and/or access these items. A collection can be as simple as a one-dimensional array or as complex as a binary tree. By knowing the advantages and disadvantages of each of the different types of collections that exist, you will make better decisions when designing your application so that it uses objects placed in the most optimal collection for that application.

It comes as no surprise that because the .NET Framework contains many object and value objects, a wide variety of collection classes have been created to contain ...

Get Sams Teach Yourself Visual C++® .NET in 24 Hours 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.