遍历 SortedList<string, string> 中的值(可用于datatable转json)

SortedList<string, string> STK = new SortedList<string, string>();
STK.Add("1", "2");
STK.Add("3", "4");
foreach (KeyValuePair<string,string> item in STK)
{
Console.Write(string.Format("{0}:{1}",item.Key,item.Value));
}

posted on 2016-05-06 22:00  缠禅  阅读(401)  评论(0编辑  收藏  举报

导航