两个List
MyClass
类该类继承IEquatable和农具等于我需要它的方式。 (意思是:当我比较两个MyClass的单独代码tyupe对象,它的工作原理)
我再创建两个目录:
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.
当我去比较利斯塔和数组listB,我应该得到真的吗?
ListA.Equals(ListB)==true; //???