public override bool Equals(object obj) { if (!(obj is StructContainingArraysOfOtherStructs)) { return(false); } return(EqualityHelpers.ArraysAreEqual(Nested, ((StructContainingArraysOfOtherStructs)obj).Nested)); }
public override bool Equals(object obj) { ObjectWithArrays o = obj as ObjectWithArrays; if (o == null) { return(false); } return (EqualityHelpers.ArraysAreEqual(IntArray, o.IntArray) && EqualityHelpers.ArraysAreEqual(StringArray, o.StringArray) && EqualityHelpers.ArraysAreEqual(TreeArray, o.TreeArray) && EqualityHelpers.ArraysAreEqual(ByteArray, o.ByteArray) && EqualityHelpers.ArraysAreEqual(JaggedArray, o.JaggedArray) && EqualityHelpers.ArraysAreEqual(MultiDimensionalArray, o.MultiDimensionalArray)); }