HashTable使用
时间:2010-09-09 来源:yoolo
1:Hashtable遍历
HashTable hash = new HashTable();
hash.Add(1,"aa");
hash.Add(2,"bb");
Foreach(DictionaryEntity em in hash)
{
response.write("{0}:{1}",em.Key,em.Value);
}
System.Collections.IDictionaryEnumerator enumerator = hash.GetEnumerator();
while(enumerator.MoveNext())
{
Response.write("{0}:{1}",enumerator.Key,enumerator.Value);
}
待完善...
相关阅读 更多 +