代码: —————————————————————————————— <script type="text/javascript"> //倒排序子元素的函数 function deleteChilds(){ //获取父DOM var ul = document.getElementsByTagName('UL')[0]; if(ul.
Dictionary Key排序 Dictionary<string, string> dct= new Dictionary<string, string>(); Dictionary<string, string> dctNew = dct.OrderBy(x => x.Key).ToDictionary(x => x.Key, x => x.Value); list Key排序 Public class student{ public int g
Linq在Array,List,Dictionary中的应用 今天在实际工作中需要对array,list,dictionary进行排序,试一试linq,发现非常好用,代码如下: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace Test { class Program { stat