a few ways: Hashtable ht = new Hashtable();
ht["hello"] = "world";
ht["yes"] = "no"; foreach (DictionaryEntry de in ht)
{
Console.WriteLine("{0}={1}", de.Key, de.Value);
} foreach (Object key in ht.Keys)
{
Console.WriteLine("{0}={1}", key, ht[key]);
}
ht["hello"] = "world";
ht["yes"] = "no"; foreach (DictionaryEntry de in ht)
{
Console.WriteLine("{0}={1}", de.Key, de.Value);
} foreach (Object key in ht.Keys)
{
Console.WriteLine("{0}={1}", key, ht[key]);
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货