I have an ObservableCollection with two properties string and int. I would like to query and return the int with the Max value.
Data example:
Category, WorkOrderVersion
AAA 1
AAA 2
AAA 3
BBB 1
BBB 2
if Category == "BBB" I would want to return 2
This is kind of what I mean:
var maxWorkOrderVersion = WorkOrderDetailsObsCollection.Where(x=>x.Category == firstSelection.Category) return Max(WorkOrderVersion);`