There is one array List<Object1> objects1; . It is filled with elements.
There is also another array List<Object1> objects2; . It is also filled with elements.
In the program, you need to check whether the elements are the same in both arrays. I am doing objects1.Equals(objects2) .
Always false
I think that, possibly, the List array itself is a reference type, and then it turns out that the elements of the arrays never match.
I ask for help from more experienced anons: how to check whether the elements of both arrays are the same?
Console.WriteLine(new[]{ 1, 2, 3 }.SequenceEqual(new[]{ 3, 2, 1 }));will give outFalse- Andrey NOP