我有一个叫做的类
当我比较ListA和ListB时,我应该得到true吗?
MyClass
这个类继承了IEquatable并且实现了我需要的相等比较方式。(也就是说,当我在代码中单独比较两个MyClass类型的对象时,它能够正常工作)
然后我创建了两个List:
var ListA = new List<MyClass>();
var ListB = new List<MyClass>();
// Add distinct objects that are equal to one another to
// ListA and ListB in such a way that they are not added in the same order.
当我比较ListA和ListB时,我应该得到true吗?
ListA.Equals(ListB)==true; //???