I am using the following line of code:
ListOfMyClass.OrderByDescending(x => x.DateCreated)
.Where(x => !x.Deleted).First();
And I get
"Replace with single call to first warning"
Which I would prefer to do but cant work out how.
I want to be able to say for the item with the Latest datecreated and that is marked as not deleted.
Where's the best place to learn these kind of query's and what's the best way to solve this one as I prefer to be a tidy coder.