예제 #1
0
        public override bool Equals(object obj)
        {
            ComplexEntity testObject = obj as ComplexEntity;

            return(testObject != null &&
                   EqualsInternal(testObject));
        }
예제 #2
0
 private ComplexEntity[] BuildComplexEntityArray(int entities)
 {
     ComplexEntity[] array = new ComplexEntity[entities];
     for (int i = 0; i < entities; i++)
     {
         array[i] = new ComplexEntity {
             TestPrimitiveEntity = PrimitiveEntityArray[i]
         }
     }
     ;
     return(array);
 }
예제 #3
0
        private bool EqualsInternal(ComplexEntity testObject)
        {
            if (TestInt != testObject.TestInt)
            {
                return(false);
            }
            if (!TestPrimitiveEntity.Equals(testObject.TestPrimitiveEntity))
            {
                return(false);
            }

            return(true);
        }