标签:style http io color ar sp for strong on
转自:http://bbs.csdn.net/topics/370152213
#2楼
foreach 值是只读的。
所以只能用 for
Dictionary<int, int> d = new Dictionary<int, int>();
d.Add(1, 1);
var target = d.ToList();
for (int index = 0; index < target.Count; index++)
XX.Write(target[index].Key + " = " + target[index].Value);
标签:style http io color ar sp for strong on
原文地址:http://www.cnblogs.com/wdw31210/p/4081270.html