C# Dictionary 的几种遍历方法 转
2021-01-15 21:14
                         标签:int   line   ons   集合   values   air   nbsp   val   版本    转 自 https://www.cnblogs.com/cjdxhc_site/articles/1727763.html C# Dictionary 的几种遍历方法 转 标签:int   line   ons   集合   values   air   nbsp   val   版本    原文地址:https://www.cnblogs.com/enych/p/12233424.html  Dictionarystring, int> list = new Dictionarystring, int>();
 
            list.Add("d", 1);
 
            //3.0以上版本
            foreach (var item in list)
            {
                Console.WriteLine(item.Key + item.Value);
            }
            //KeyValuePair
下一篇:[Mathematics][Fundamentals of Complex Analysis][Small Trick] The Trick on drawing the picture of sin
文章标题:C# Dictionary 的几种遍历方法 转
文章链接:http://soscw.com/index.php/essay/42418.html