SyntaxFix
Write A Post
Hire A Developer
Questions
With EF or LINQ to SQL:
var item = db.Items.OrderByDescending(i => i.Value).FirstOrDefault();
With LINQ to Objects I suggest to use morelinq extension MaxBy (get morelinq from nuget):
MaxBy
var item = items.MaxBy(i => i.Value);