Re: collections vs hashtable
Do not use the Microsoft.VisualBasic.Collection class for anything. It is a hold-over from VB6 and basically exists for backward compatibility.
If you need any type of collection then use a class from the System.Collections namespace or, if you're using .NET 2.0 or later, the System.Collections.Generic namespace. If sorting is not required then you can use the standard Hashtable class or generic Dictionary class. If sorting is required you can use the standard SortedList class or generic SortedList and SortedDictionary classes.
I would suggest always using a generic collection in preference to a standard equivalent unless you're using .NET 1.x, where generics don't exist.
Re: collections vs hashtable
I edited my original post while you posted your reply.
I don't need sorting, but I do need it to be ordered by how the data is added to the hashtable. So I guess I should just implemented an ordered hashtable.
Re: collections vs hashtable
I just did some searches. How about an OrderedDictionary? That seems like it would suit my needs. Are there anything to be aware of using it?