【发布时间】:2012-06-01 07:31:37
【问题描述】:
如果我对同一个键有多个值,那么如何将它添加到哈希表中 例如:
Hashtable hs = new Hashtable();
hs["id"]= "x001.xhtml";
hs["media-type"]= "application/xhtm+xml";
hs["href"]= "text/001.xhtml";
hs["id"]= "x002.xhtml";
hs["media-type"]= "application/xhtm+xml";
hs["href"]= "text/002.xhtml";
hs["id"]= "x003.xhtml";
hs["media-type"]= "application/xhtm+xml";
hs["href"]= "text/003.xhtml";
这只是哈希表中的最后一组,即
hs["id"]= "x003.xhtml";
hs["media-type"]= "application/xhtm+xml";
hs["href"]= "text/003.xhtml";
如何解决这个问题....提前谢谢!!
【问题讨论】:
-
看起来你想要一个对象列表或字典给我
标签: c# mono ios-simulator hashtable monodevelop