赞
踩
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
-
- namespace ConsoleApplication1
- {
- class Program
- {
- static void Main(string[] args)
- {
-
- Dictionary<int, string> test = new Dictionary<int, string> { };
- test.Add(0,"000");
- test.Add(4, "444");
- test.Add(2, "222");
- test.Add(6, "666");
-
- Dictionary<int, string> dic1Asc = test.OrderBy(o => o.Key).ToDictionary(o => o.Key, p => p.Value);
-
-
- Console.WriteLine("小到大排序");
- foreach(KeyValuePair<int,s
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。