Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- testlastcommented = doc.Comments.Count > 0 ? doc.Comments.Select(c => c.DateEntered).Max() : null
- testlastcommented = doc.Comments.OrderByDescending(c => c.DateEntered).FirstOrDefault()
- testlastcommented = doc.Comments.Select(c => c.DateEntered)
- .OrderByDescending(x => x)
- .FirstOrDefault()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement