You need a
using System.Collections;
Hashtable
is a non-generic collection, so it sits in that namespace.
Edit:
I strongly suggest you use generic collections whenever there is no very good reason not to. So, no Hashtable, no ArrayList and whatever else there is
*
. Instead Dictionary<TKey, TValue>, List<T>, HashSet<T> and so forth. You gain compile-time type-safety which is worth a lot (in order to avoid bugs in the first place) and also small performance gains for value-types (no boxing/unboxing).
Another Edit:
*
Please see Sergey's comments below. There are some collections of which there is no generic implementation, so for those my above suggestion would not be applicable.