Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# linq to select even numbers

var oddCategories  = projectsByCat.ToList().Where((c,i) => i % 2 != 0);
var evenCategories = projectsByCat.ToList().Where((c,i) => i % 2 == 0);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #linq #select #numbers
ADD COMMENT
Topic
Name
3+2 =