using
System.Collections;
HashTable thProduct;
HashTable thProduct;
一
IDictionaryEnumerator enumerator
=
thProduct.GetEnumerator();
while (enumerator.MoveNext())
{
arrKey.Add( " @ " + enumerator.Key.ToString()); // Hashtable关健字
arrValue.Add(enumerator.Value.ToString()); // Hashtable值
}
while (enumerator.MoveNext())
{
arrKey.Add( " @ " + enumerator.Key.ToString()); // Hashtable关健字
arrValue.Add(enumerator.Value.ToString()); // Hashtable值
}
二
foreach
(DictionaryEntry objDE
in
thProduct)
{
Console.WriteLine(objDE.Key.ToString());
Console.WriteLine(objDE.Value.ToString());
}
{
Console.WriteLine(objDE.Key.ToString());
Console.WriteLine(objDE.Value.ToString());
}