Hashtable ht = new Hashtable(); for (int i = 0; i < 100; i++) ht.Add(i, i); foreach (int i in ht.Keys)//这样是按加入顺序的倒序输出 Console.WriteLine(ht[i]);