Hastable 用法及循环读取
string strlist = ""; Hashtable hastable = new Hashtable(); hastable.Add("chen", "5"); hastable.Add("jian", "6"); hastable.Add("ping", "7"); IDictionaryEnumerator hsEnum = hastable.GetEnumerator(); while (hsEnum.MoveNext()) { strlist += hsE
string strlist = "";
Hashtable hastable = new Hashtable();
hastable.Add("chen", "5");
hastable.Add("jian", "6");
hastable.Add("ping", "7");
IDictionaryEnumerator hsEnum = hastable.GetEnumerator();
while (hsEnum.MoveNext())
{
strlist += hsEnum.Value.ToString() + hsEnum.Key.ToString();
}
Response.Write(strlist);
上一篇: 腾龙娱乐开户16624610555
下一篇: smarty的保留变量问题_PHP
推荐阅读