Windows phone 7 如何为Windows phone的提醒按顺序排序或排序日期
我创建提醒,我需要按升序或降序排序或安排顺序Windows phone 7 如何为Windows phone的提醒按顺序排序或排序日期,windows-phone-7,Windows Phone 7,我创建提醒,我需要按升序或降序排序或安排顺序 reminders = ScheduledActionService.GetActions<Reminder>().Where(a => a.BeginTime.Month == intMth); rementers=ScheduledActionService.GetActions()。其中(a=>a.BeginTime.Month==intMth); 例如: 2011年11月1日 2011年11月8日 2011年11月10日
reminders = ScheduledActionService.GetActions<Reminder>().Where(a => a.BeginTime.Month == intMth);
rementers=ScheduledActionService.GetActions()。其中(a=>a.BeginTime.Month==intMth);
例如:
2011年11月1日
2011年11月8日
2011年11月10日
谢谢您可以在linq声明中使用或
例如:
将返回4,2,1谢谢。我需要将其更改为OrderByDescending(a=>a.Somedate);
var l = new [] { 1, 2, 4}.OrderByDescending(a => a);
foreach(var r in l)
Console.WriteLine(r);