I created a list<T> that contains a collection of objects that have this properties: X, Y, Z
I want to find out which object in the collection has the greatest Z
I tried to use the Max() function but I don’t understand how it’s used…
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Max is used to find the maximum value of a property. Once you have the maximum value you can select those objects whose value matches using the Where clause.