From a string array
string[] str1={"u1-u2","u1-u2","u1-u4","u4-u1"};
string[] str2 = str1.Distinct().ToArray();
Distinct elements in a arry is:"u1-u2","u1-u4","u4-u1"
But i have to get distinct output like this: "u1-u2","u1-u4".
so please help me out