distinct and not null c# code example
Example: distinct and not null c#
dates
.Where(x => x.HasValue)
.Select(x => x.Value.Date)
.Distinct()
.OrderByDescending(x => x)
dates
.Where(x => x.HasValue)
.Select(x => x.Value.Date)
.Distinct()
.OrderByDescending(x => x)