コード例 #1
0
 public override bool Equals(object obj)
 {
     if (!(obj is StructContainingArraysOfOtherStructs))
     {
         return(false);
     }
     return(EqualityHelpers.ArraysAreEqual(Nested, ((StructContainingArraysOfOtherStructs)obj).Nested));
 }
コード例 #2
0
        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));
        }