【发布时间】:2020-08-22 18:13:49
【问题描述】:
我不能像下面这样查询集合,以获得给定“键”的最大“值”,但键和值是集合的子集合
我需要获取这个集合的“Revision”键的最大值:
- document
- id
- description
- key
- version
- revision
- otherkey
- value
- "1.0"
- 1
- "othervalue"
- document
- id
- description
- key
- version
- revision
- otherkey
- value
- "1.0"
- 2
- "othervalue"
- document
- id
- description
- key
- version
- revision
- otherkey
- value
- "1.0"
- 3
- "othervalue"
- document
- id
- description
- key
- version
- revision
- otherkey
- value
- "2.0"
- 1
- "othervalue"
有什么提示吗?
【问题讨论】:
-
能否分享一些代码,比如类,文档列表初始化...?
标签: c# linq linq-to-objects