I've got a list containing objects from a class. The class which contains various items including int and double arrays. The class looks something like this.
public class NewChildren
{
public double[] fitnessValue{get;set;}
public int[] locationScheme{get;set;}
public double crowdingDistance{get;set;}
}
As the list might contain duplicate items, I'm interested in removing them. On the web, I've seen some solutions based on Linq which use Distinct() and GroupBy() methods. However, it seems that these methods won't work as there is arrays in objects (the MSVS2008 won't give any error, but no item is removed either).
Any suggestion (including references or codes) is highly appreciated. Thanks in advance.