摘要:
关键利用KeyValuePair。 定义一个Dictionary: Dictionary aggUpGroupPointDic = new Dictionary(); 遍历它: foreach (KeyValuePairkeyValuePair inaggDownGroupPointDic) { Console.WriteLine(“Point{0}’s position is ({1},{2})”,keyValuePair.Key,keyValuePair.Value.X,keyValuePair.Value.Y); } 阅读全文