Hashtable 的施用

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());