I have a list of string[]:
List<string[]> EIndex;
Eindex list has 4 string[]
INPUT: {0,John},{1,Mike},{2,John},{3,Tim}
Expected OUTPUT: {0,John},{1,Mike},{3,Tim}
I want to distinct the array based on index number 1 of string[]
Like:
List<string[]> DistinctList = Eindex.Distinct(obj => obj[1]).ToList();
any suggestion?