Exemplo n.º 1
0
        public override bool Equals(object obj)
        {
            ComplexEntity testObject = obj as ComplexEntity;

            return(testObject != null &&
                   EqualsInternal(testObject));
        }
Exemplo n.º 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);
 }
Exemplo n.º 3
0
        private bool EqualsInternal(ComplexEntity testObject)
        {
            if (TestInt != testObject.TestInt)
            {
                return(false);
            }
            if (!TestPrimitiveEntity.Equals(testObject.TestPrimitiveEntity))
            {
                return(false);
            }

            return(true);
        }