第一种用法myList.Sort((x, y) => DateTime.Compare(x.Created, y.Created));
第二种用法 myList = myList.OrderBy(x => x.Created).ToList();
第一种用法myList.Sort((x, y) => DateTime.Compare(x.Created, y.Created));
第二种用法 myList = myList.OrderBy(x => x.Created).ToList();
本文标题:ZJHR DataTime?和DataTime排序
本文链接:https://www.haomeiwen.com/subject/kkvekctx.html
网友评论