/// <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(IntercomIdentifier obj) { bool ivarsEqual = true; if (obj.GetType() != this.GetType()) { return(false); } if (this._siteNumber != obj._siteNumber) { ivarsEqual = false; } if (this._applicationNumber != obj._applicationNumber) { ivarsEqual = false; } if (this._referenceNumber != obj._referenceNumber) { ivarsEqual = false; } if (this._intercomNumber != obj._intercomNumber) { 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(IntercomIdentifier obj) { bool ivarsEqual = true; if (obj.GetType() != this.GetType()) { return false; } if (this._siteNumber != obj._siteNumber) { ivarsEqual = false; } if (this._applicationNumber != obj._applicationNumber) { ivarsEqual = false; } if (this._referenceNumber != obj._referenceNumber) { ivarsEqual = false; } if (this._intercomNumber != obj._intercomNumber) { ivarsEqual = false; } return ivarsEqual; }