c# - Select distinct items with a specific field in an array -
i have 2 dimensional array ics
.each row contains 3 fields category,name,description.i want distinct category array.i had tried this
var cs = ics.distinct(t => t.category);
but not working.can 1 give me hand on this?
ics.select(t=>t.category).distinct()
Comments
Post a Comment