一 . hashTable

1.引用

using System.Collections;

2.声明

Hashtable ht = new Hashtable(); 

3.添加值

ht.Add(key,value);  key 唯一

string keytxt = de.Key.ToString() 

string  valuetxt = de.Value.ToString() 

4.修改值

foreach (DictionaryEntry de in ht)
{

      if (de.Key.ToString() == yyyyMM)
      {

     ht[de.Key.ToString()] = changeValue

      }

}

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-21
  • 2022-12-23
  • 2021-12-23
猜你喜欢
  • 2021-07-05
  • 2021-08-27
  • 2022-12-23
  • 2022-12-23
  • 2021-08-17
相关资源
相似解决方案