Deduplication of 2d array

I want to remove the duplicate value from the 2D array.

this is sample :
string[10] { string[3] { “ABC”, “5”, “4” }, string[3] { “ABC”, “5”, “4” }, string[3] { “ABC”, “5”, “4” }, string[3] { “ABC”, “5”, “4” }, string[3] { “QWE”, “4”, “3” }, string[3] { “QWE”, “4”, “3” }, string[3] { “QWE”, “4”, “3” }, string[3] { “BNM”, “4”, “3” }, string[3] { “BNM”, “4”, “3” }, string[3] { “BNM”, “4”, “3” } }

result : {{ “ABC”, “5”, “4” }, { “QWE”, “4”, “3” }, { “BNM”, “4”, “3” }}

The variable is array in array

“variable.distinct().toarray” doesn’t work

thanks

give a try at


(From x in YourArrVa
Group x by k1=x(0), k2=x(1),k3=x(2) into grp=Group
Select r=grp.First()).toArray
2 Likes

Thank you for your help,

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.