SyntaxFix
Write A Post
Hire A Developer
Questions
int max = items.Max(i => i.ID); var item = items.First(x => x.ID == max);
This assumes there are elements in the items collection of course.