c# linq to get most recent item from IList code example
Example: c# linq to get most recent item from IList
DateTime? latestDate = myCollection.Max(r => r.ExpirationDate);
DateTime? latestDate = myCollection.Max(r => r.ExpirationDate);