I need your help. I am trying to get distinct values from List of objects. My class looks like this:
class Chromosome
{
public bool[][] body { get; set; }
public double fitness { get; set; }
}
Now I have List<Chromosome> population
. And now what I need is a way, how I can get new list: List<Chromosome> newGeneration
. This new list will contain only unique chromosomes from original list - population.