2012年4月11日
摘要: Dictionary<string,int> list =newDictionary<string,int>(); list.Add("d", 1);//3.0以上版本foreach(variteminlist) {Console.WriteLine(item.Key + item.Value); }//KeyValuePair<T,K>foreach(KeyValuePair<string,int> kvinlist) {Console.WriteLine(kv.Key + kv.Value); }//通过键的集合取fore 阅读全文
posted @ 2012-04-11 09:59 折翼的天使 阅读(156) 评论(0) 推荐(0) 编辑