I have a list of Tuples that looks like this:
List<Tuple<double, double, double, string, string, string>> myList;
The double values represent X-Y-Z cooridinate values, and the strings are certain properties that are attached to these coordinates.
Now i want to use the myList.lis.Distinct().ToList()
method to filter out any duplicates. After all, 1 coordinate can be the start of a line, while another is the endpoint of another line, but as they are connected i get the point XYZ point twice in my list, but with other string properties.
But i only want to use the Distinct on the 3 double values of the Tuple and ignore the strings.
So far i haven't figured out yet how to do so. Is this possible, and how so ?