"John Grandy" <johnagrandy-at-yahoo-dot-com> wrote in message
news:Ou**************@TK2MSFTNGP15.phx.gbl...
What are good rules of thumb to use when deciding between a
NameValueCollection, an ArrayList, or a Hashtable ?
Well, they are different beasts. ArrayList is a straight list with no
association with a key, whereas the other two do associate with a key. Use
it when you just need a list, not a dictionary(a collction where you can
look up a key to find a value).
NameValueCollection only works with strings, so its pretty much limited to
strings. Hashtable will work with any object type and is my preference for a
dictionary.