CodePlexProject Hosting for Open Source Software
I used ObservableCollection of Class Person. Person Class have property of Weight. I want to find Max Weight out of collection without using For Each loop.
How can i able to do that?
double max = personCollection.Max(person => person.Weight);
note: expression uses System.Linq
Thanks it work for me.
Are you sure you want to delete this post? You will not be able to recover it later.
Are you sure you want to delete this thread? You will not be able to recover it later.