In C#, I find myself using a List<T>
, IList<T>
or IEnumerable<T>
99% of the time. Is there a case when it would be better to use a HashTable
(or Dictionary<T,T>
in 2.0 and above) over these?
Edit:
As pointed out, what someone would like to do with the collection often dictates what one should be using, so when would you use a Hashtable
/Dictonary<T,T>
over a List<T>
?