摘要: Dictionary<int, string>进行枚举遍历的时候,使用IEnumerable<KeyValuePair<TKey, TValue>>.当然完全可以用foreach遍历,foreach把枚举的复杂性降低了。 public static Dictionary<int, string> listPartition; IEnumerable<KeyValuePair<int, string>> partitiontemp = listPartition.Where(c => (!string.IsNullOr 阅读全文
posted @ 2013-01-08 16:41 VORO 阅读(3208) 评论(0) 推荐(0) 编辑