`

Hashtable 的使用

 
阅读更多

2011-3-31

Hashtable 的使用:

 

        Hashtable ht = new Hashtable(); 
        ht.Add("cyj", "100");            //--添加值
        ht.Add("music", "60");

 

        Response.Write("cyj:"+ht["cyj"].ToString());   //--读取值
        Response.Write("music:" + ht["music"].ToString());

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics