/// <summary> /// Returns true if PriceBase instances are equal /// </summary> /// <param name="other">Instance of PriceBase to be compared</param> /// <returns>Boolean</returns> public bool Equals(PriceBase other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Id == other.Id || Id != null && Id.Equals(other.Id) ) && ( Opening == other.Opening || Opening != null && Opening.Equals(other.Opening) ) && ( Closing == other.Closing || Closing != null && Closing.Equals(other.Closing) ) && ( Highest == other.Highest || Highest != null && Highest.Equals(other.Highest) ) && ( Lowest == other.Lowest || Lowest != null && Lowest.Equals(other.Lowest) ) && ( Volume == other.Volume || Volume != null && Volume.Equals(other.Volume) ) && ( Turnover == other.Turnover || Turnover != null && Turnover.Equals(other.Turnover) )); }