When to Create a Custom Collection?

Inbar Gazit in his latest MSDN Magazine article “Collections Best Practices” makes a interesting question: when to create a custom collection?
My answer for this one is simple: hardly never! Speaking for myself, it has been a few years since I’ve created a custom collection in any of the projects I’ve been working, both in .Net and in Java. With the variety of collection types available and introduction of Generics there are few reasons that justify the implementation of a custom collection, and in most of the cases if someone’s thinking in creating a custom collection the chances are that a collection isn’t needed at all.

Related Posts (generated)

This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Switch to our mobile site