一、 C# 键值对类有以下类: 1、IDictionary idc = new Dictionary(); 2、KeyValuePair par = (KeyValuePair)shoplistcomboBox.SelectedItem; 3、Hashtable ht=new Hashtable(); file创建一个Hashtable实例 ht.Add(E,e);添加keyvalue键值对Hashtable 内的每一组对象就是一个DictionaryEntry例如我们要循环hashtableforeach (DictionaryEntry de in myHashtable) {...}Ha
posted @ 2013-08-07 09:10
莫斯科餐厅
阅读(236)
评论(0)
推荐(0)