/// <summary> /// 查看我的操作记录 /// </summary> /// <param name="me">当前用户</param> public static void ViewMyHistory(this UserCore me) { me.GetHistory().OrderByDescending(msg => msg.Time).ToList().ForEach(WriteLine); //var messages = (from msg in me.GetHistory() // orderby msg.Time descending // select msg).ToList(); //messages.ForEach(WriteLine); }