会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
我思故我在...
博客园
首页
新随笔
联系
管理
订阅
2011年12月9日
Dictionary几种遍历方法
摘要: Dictionary<string, int> list = new Dictionary<string, int>(); list.Add("d", 1); foreach (var item in list) { Console.WriteLine(item.Key + item.Value); } //KeyValuePair<T,K> foreach (KeyValuePair<string, int> kv in list) ...
阅读全文
posted @ 2011-12-09 10:29 我思故我在...
阅读(204)
评论(0)
推荐(0)
编辑
公告