c#之HashTable 集合类
1. 命名空间 using System.Collections;2. Hashtable ht=new Hashtable();ht.Add(“”,””); //键值对,ht.Add(“”,””);ht.Add(“”,””);foreach(string str in ht.Keys){}//遍历输出键foreach(string str in ht.Value){}//遍历输出值//第二种遍历方法 遍历输出键ICollection ic=ht.Keys;IRnumer