Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how can i replace Any for All method and vice versa linq in c#

var results = employees.GroupBy(e => e.Department).
    Select(d => new { Department = d.Key, Size = d.Count()});

Source by www.codemag.com #
 
PREVIOUS NEXT
Tagged: #replace #Any #All #method #vice #versa #linq
ADD COMMENT
Topic
Name
1+7 =