兩個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; //???