using System.Collections;
 
HashTable thProduct;

 

IDictionaryEnumerator enumerator = thProduct.GetEnumerator(); 
   
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());
}

相关文章:

  • 2022-12-23
  • 2021-11-21
  • 2021-11-09
  • 2021-07-19
  • 2022-12-23
  • 2022-12-23
  • 2021-08-06
  • 2021-11-30
猜你喜欢
  • 2021-10-21
  • 2021-09-30
  • 2022-12-23
  • 2022-12-23
  • 2021-11-01
  • 2021-09-11
  • 2021-12-19
相关资源
相似解决方案