/// <summary> /// Compares for reference AND value equality. /// </summary> /// <param name="obj">The object to compare with this instance.</param> /// <returns> /// <c>true</c> if both operands are equal; otherwise, <c>false</c>. /// </returns> public bool Equals(EntityAssociation obj) { bool ivarsEqual = true; if (obj.GetType() != this.GetType()) { return(false); } if (this._recordType != obj._recordType) { ivarsEqual = false; } if (this._changeIndicator != obj._changeIndicator) { ivarsEqual = false; } if (this._associationStatus != obj._associationStatus) { ivarsEqual = false; } if (this._associationType != obj._associationType) { ivarsEqual = false; } if (!this._entityID.Equals(obj._entityID)) { ivarsEqual = false; } if (this._owsSttionLocation != obj._owsSttionLocation) { ivarsEqual = false; } if (this._physicalConnectionType != obj._physicalConnectionType) { ivarsEqual = false; } if (this._groupMemberType != obj._groupMemberType) { ivarsEqual = false; } if (this._groupNumber != obj._groupNumber) { ivarsEqual = false; } return(ivarsEqual); }
/// <summary> /// Compares for reference AND value equality. /// </summary> /// <param name="obj">The object to compare with this instance.</param> /// <returns> /// <c>true</c> if both operands are equal; otherwise, <c>false</c>. /// </returns> public bool Equals(EntityAssociation obj) { bool ivarsEqual = true; if (obj.GetType() != this.GetType()) { return false; } if (this._recordType != obj._recordType) { ivarsEqual = false; } if (this._changeIndicator != obj._changeIndicator) { ivarsEqual = false; } if (this._associationStatus != obj._associationStatus) { ivarsEqual = false; } if (this._associationType != obj._associationType) { ivarsEqual = false; } if (!this._entityID.Equals(obj._entityID)) { ivarsEqual = false; } if (this._owsSttionLocation != obj._owsSttionLocation) { ivarsEqual = false; } if (this._physicalConnectionType != obj._physicalConnectionType) { ivarsEqual = false; } if (this._groupMemberType != obj._groupMemberType) { ivarsEqual = false; } if (this._groupNumber != obj._groupNumber) { ivarsEqual = false; } return ivarsEqual; }