public override bool Equals(object obj) { PrimitiveEntity testObject = obj as PrimitiveEntity; return(testObject != null && EqualsInternal(testObject)); }
private bool EqualsInternal(PrimitiveEntity testObject) { if (TestByte != testObject.TestByte) { return(false); } if (TestShort != testObject.TestShort) { return(false); } if (TestInt != testObject.TestInt) { return(false); } if (TestLong != testObject.TestLong) { return(false); } if (TestDateTime != testObject.TestDateTime) { return(false); } if (TestDateTimeOffset != testObject.TestDateTimeOffset) { return(false); } if (TestString != testObject.TestString) { return(false); } return(true); }
private PrimitiveEntity[] BuildPrimitiveEntityArray(int entities) { PrimitiveEntity[] array = new PrimitiveEntity[entities]; for (int i = 0; i < entities; i++) { array[i] = new PrimitiveEntity(); } return(array); }