Quote Originally Posted by NotLKH
What are the advantages of your suggestion?

A few weeks ago I came across, I believe, some sample code you wrote.
It looked good, but I didn't quite understand its functioning if, for example, all I needed was something to return a value if the key existed, or else return nothing.
well if you want a dictionary type class... but need it to have some additional functionality (for example populating its contents from a database) then often times creating your own class is the way to go because they give you these robust base classes to inherit from... I need to know nothing about how to enumerate or any of the inner workings of a collection type class becuase its all brought up from the baseclass

that is just one example.. but pretty much ANYTHING you may want a dictionarytype class to do that it doesnt by default can be added into your customer class... while still getting everything from the base.

using a hashtables will no doubt be a useful answer in many situations also