SyntaxFix
Write A Post
Hire A Developer
Questions
In LINQ you can solve it the following way:
Item itemMax = (from i in items let maxId = items.Max(m => m.ID) where i.ID == maxId select i).FirstOrDefault();