I have 2 List<Animal> which I would like to compare and find the difference between the 2 List<Animal> objects.
Animal object contains the following properties.
Id
Name
Age
List list1 has a count of 10 Animal objects in it, where as list2 has another 10 Animal objects in it. In these 2 Lists there are 2 items (Animal objects that the same)
When I use the Except function, I was hoping that remainingList will contain Only the objects that aren't common between the 2 list. However, remainingList contains a copy of list1 instead.
How can I solve this ?
 List<Animal> remainingList = list1.Except(list2).toListAsync();
 
     
    