Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想从字典中选择具有最新创建日期的标题。
ulong 是标题的序列号,title 是一个以“created”作为创建日期的类。我想选择最近创建的标题。
只需 OrderByDesending Title.created,然后取第一个:
Title.created
Title result = dic.OrderByDescending(x => x.Value.created).FirstOrDefault().Value;