【C#】-哈希表(Hashtable)foreach循環

1、認識Hashtablespa Hashtable ht = new Hashtable(); //建立哈希表blog 須要用到命名空間using System Collectionsio 往裏面添加數據Ht.Add("Nastu","001") , 哈希表以鍵值對的形式存值。for循環 Key-鍵 Value-值 裏面不能放一個。table   它是一對一對的存的,而不是一個一個存的。ast
相關文章
相關標籤/搜索