码迷,mamicode.com
首页 > 编程语言 > 详细

c#中数组的使用

时间:2018-10-30 21:22:37      阅读:172      评论:0      收藏:0      [点我收藏+]

标签:font   sys   eval   reac   size   ble   span   style   string   

一 . 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

      }

}

 

c#中数组的使用

标签:font   sys   eval   reac   size   ble   span   style   string   

原文地址:https://www.cnblogs.com/mamaxiaoling/p/8010613.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!