摘要: Dictionary<string,string>list=newDictionary<string,string>;//3.0以上版本foreach(variteminlist){Console.WriteLine(item.Key+item.Value);}//KeyValuePair<T,K>foreach(KeyValuePair<string,string>kvinlist){Console.WriteLine(kv.Key+kv.Value);}//通过键的集合取foreach(stringkeyinlist.Keys){Consol 阅读全文
posted @ 2012-10-18 14:23 飛雲若雪 阅读(625) 评论(2) 推荐(0) 编辑