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