Creating Your Own Collections

We've thus far looked at some of the most popular collection classes in this chapter. However, you can also build your own collections, and we'll see how to do that in the rest of this chapter.

SHOP TALK: ADDING A COLLECTION CLASS

In a production or team environment, it's often not enough to simply release a new and useful class for others to use. You'll also normally have to add documentation, as well as register versioning and tracking data in a central data store. In C#, it's also common to release a collection class for objects of your new class—if you don't, it's one of the things people are sure to ask for. There are a number of interfaces to implement in order to build C# collections, and we'll take a look ...

Get Microsoft® Visual C#® .NET 2003 Kick Start 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.