欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

遍歷Hashtable 的幾種方法

 更新時間:2007年03月09日 00:00:00   作者:  
方法一:

IDictionaryEnumerator enumerator = thProduct.GetEnumerator(); 
   while (enumerator.MoveNext())
   {
    arrKey.Add("@"+enumerator.Key.ToString());         // Hashtable關(guān)健字
    arrValue.Add(enumerator.Value.ToString());            // Hashtable值
   }
方法二:

using System.Collections;

HashTable objHasTab;

// Setting values to objHasTab

foreach (DictionaryEntry objDE in objHasTab)
{
    Console.WriteLine(objDE.Key.ToString());
    Console.WriteLine(objDE.Value.ToString());


 

相關(guān)文章

最新評論