/// <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(IOCommunicationsNode obj) { bool ivarsEqual = true; if (obj.GetType() != this.GetType()) { return(false); } if (this._recordType != obj._recordType) { ivarsEqual = false; } if (this._recordLength != obj._recordLength) { ivarsEqual = false; } if (this._communcationsNodeType != obj._communcationsNodeType) { ivarsEqual = false; } if (this._padding != obj._padding) { ivarsEqual = false; } if (!this._communicationsNode.Equals(obj._communicationsNode)) { ivarsEqual = false; } if (this._elementID != obj._elementID) { 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(IOCommunicationsNode obj) { bool ivarsEqual = true; if (obj.GetType() != this.GetType()) { return false; } if (this._recordType != obj._recordType) { ivarsEqual = false; } if (this._recordLength != obj._recordLength) { ivarsEqual = false; } if (this._communcationsNodeType != obj._communcationsNodeType) { ivarsEqual = false; } if (this._padding != obj._padding) { ivarsEqual = false; } if (!this._communicationsNode.Equals(obj._communicationsNode)) { ivarsEqual = false; } if (this._elementID != obj._elementID) { ivarsEqual = false; } return ivarsEqual; }