C#------SortedLIst键值对的使用方法

方法:

SortedList sf = new SortedList();
sf.Add(0, "广州");
sf.Add(1, "江门");
sf.Add(2, "湛江");

foreach (DictionaryEntry li in sf)
{
  Console.WriteLine(li.Key);
  Console.WriteLine(li.Value);
}
原文地址:https://www.cnblogs.com/tianhengblogs/p/6640111.html