Hi,
I got a list<list<string>>
in list[x][0]
are records from which I want to choose unique records thus such record wouldn't be in any other list[x][0
], when I choose it, i'd like whole row list[x]
to be chosen. I haven't found the appropriate exapmple for this in Linq, please help :(
EDIT
When Jon Skeet asks me to clarify, I can't deny ;-)
list<list<string>>
contains list of string table . Each of the string "table" contains several keys list[x][several_items]
and I want to get unique records from list-> meaning FIRST item in that "table".
Thus:
item[0] = "2","3","1","3"
item[1] = "2","3","4","2"
item[3] = "10","2"
item[4]= "1","2"
-> unique would mean that I can derive rows item[3] and item[4]
as unique. because first occurence of number/string is important.
If there are 2 or more records/rows (item[x] of which first item (item[x][0])
exists more than once in the list, it's not unique.
First element of each list is important to determine uniqueness. Maybe it'd be easier if someone can help to find a way to find non-unique -> so from the above example the list I'd get only item[0] and item[1]