/// <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(ExpendableReload obj) { bool ivarsEqual = true; if (obj.GetType() != this.GetType()) { return(false); } if (!this._expendable.Equals(obj._expendable)) { ivarsEqual = false; } if (this._station != obj._station) { ivarsEqual = false; } if (this._standardQuantity != obj._standardQuantity) { ivarsEqual = false; } if (this._maximumQuantity != obj._maximumQuantity) { ivarsEqual = false; } if (this._standardQuantityReloadTime != obj._standardQuantityReloadTime) { ivarsEqual = false; } if (this._maximumQuantityReloadTime != obj._maximumQuantityReloadTime) { 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(ExpendableReload obj) { bool ivarsEqual = true; if (obj.GetType() != this.GetType()) { return false; } if (!this._expendable.Equals(obj._expendable)) { ivarsEqual = false; } if (this._station != obj._station) { ivarsEqual = false; } if (this._standardQuantity != obj._standardQuantity) { ivarsEqual = false; } if (this._maximumQuantity != obj._maximumQuantity) { ivarsEqual = false; } if (this._standardQuantityReloadTime != obj._standardQuantityReloadTime) { ivarsEqual = false; } if (this._maximumQuantityReloadTime != obj._maximumQuantityReloadTime) { ivarsEqual = false; } return ivarsEqual; }