Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

distinct and not null c#

dates
    .Where(x => x.HasValue)
    .Select(x => x.Value.Date)
    .Distinct()
    .OrderByDescending(x => x)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #distinct #null
ADD COMMENT
Topic
Name
7+3 =