0

我想从字典中选择具有最新创建日期的标题。

ulong 是标题的序列号,title 是一个以“created”作为创建日期的类。我想选择最近创建的标题。

4

1 回答 1

0

只需 OrderByDesending Title.created,然后取第一个:

Title result = dic.OrderByDescending(x => x.Value.created).FirstOrDefault().Value;
于 2018-11-30T21:44:52.760 回答