Example #1
0
        public override bool Equals(object obj)
        {
            if (this == obj)
            {
                return(true);
            }
            ClassForTesting classForTesting = obj as ClassForTesting;

            if (classForTesting == null)
            {
                return(false);
            }
            return(Equals(classForTesting));
        }
Example #2
0
 private bool Equals(ClassForTesting classForTesting)
 {
     if (array.Length != classForTesting.array.Length)
     {
         return(false);
     }
     for (int index = 0; index < array.Length; index++)
     {
         if (array[index] != classForTesting.array[index])
         {
             return(false);
         }
     }
     return(i == classForTesting.i);
 }