Application #66. Build a Custom Collection Class

This topic shows how to create custom collection classes by inheriting from System.Collections.CollectionBase. While the .NET Framework has many generalpurpose collection classes, they are not type-safe because they are designed to contain objects of any type. If you want a collection that contains only objects of a specific type, you need to create a custom collection.

Building Upon...

Application #7: Object-Oriented Features

Application #8: Scoping, Overloading, Overriding

New Concepts

The first step in designing a custom collection is to identify which framework collection class is most suitable to serve as your custom collection’s base class. Each collection type maintains at least one ...

Get 101 Microsoft® Visual Basic® .NET Applications 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.