/// <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(SystemID obj) { bool ivarsEqual = true; if (obj.GetType() != this.GetType()) { return(false); } if (this._systemType != obj._systemType) { ivarsEqual = false; } if (this._systemName != obj._systemName) { ivarsEqual = false; } if (this._systemMode != obj._systemMode) { ivarsEqual = false; } if (this._changeOptions != obj._changeOptions) { 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(SystemID obj) { bool ivarsEqual = true; if (obj.GetType() != this.GetType()) { return false; } if (this._systemType != obj._systemType) { ivarsEqual = false; } if (this._systemName != obj._systemName) { ivarsEqual = false; } if (this._systemMode != obj._systemMode) { ivarsEqual = false; } if (this._changeOptions != obj._changeOptions) { ivarsEqual = false; } return ivarsEqual; }