for循环 Dictionary

Dictionary<string, string> dic = new Dictionary<string, string>();
            dic.Add("1", "1");

            for (int index = 0; index < dic.Count; index++)
            {
                var item = dic.ElementAt(index);
                var itemKey = item.Key;
                var itemValue = item.Value;
            }

  

posted @ 2018-01-10 11:38  会弹猫的吉他  阅读(402)  评论(0编辑  收藏  举报