// Test Hashtable class. public static void Main() { Hashtable ht = new Hashtable(); ht.Add("gsdf", 5); ht.Add("sefd", "dog"); ht.Add("usqs", 'X'); ht.Add("odic", 43.54); ht.Add("mcnx", true); Console.WriteLine(ht["gsdf"]); Console.WriteLine(ht["sefd"]); Console.WriteLine(ht["usqs"]); Console.WriteLine(ht["odic"]); Console.WriteLine(ht["mcnx"]); Console.WriteLine(); Console.WriteLine(ht["abcd"]); Console.WriteLine(ht["abcd"] == null); Console.WriteLine(ht.Count); Console.ReadLine(); }