Summary

The Framework Class Library provides a host of powerful, easy-to-use collection classes. The next time you need to manage a group of data, you should be well equipped to choose the right solution.

The following key points were presented in this chapter:

  • The Stack collection class is used for last-in, first-out access.

  • The Queue collection class provides first-in, first-out access.

  • The ArrayList collection class is powerful when manipulating a collection in ranges.

  • The Hashtable collection class provides fast access to items based on keys.

  • The Synchronized method on a collection class returns a thread-safe wrapper for the given class.

  • You can use classes such as CollectionBase and DictionaryBase to implement your own strongly typed collection ...

Get Visual Basic® Programmer's Guide to the .NET Framework Class Library 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.