/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { var hash = 41; // Suitable nullity checks etc, of course :) if (OpTypes != null) { hash = hash * 59 + OpTypes.GetHashCode(); } if (Heartbeat != null) { hash = hash * 59 + Heartbeat.GetHashCode(); } if (OrderSubscriptionMessage != null) { hash = hash * 59 + OrderSubscriptionMessage.GetHashCode(); } if (MarketSubscription != null) { hash = hash * 59 + MarketSubscription.GetHashCode(); } if (Authentication != null) { hash = hash * 59 + Authentication.GetHashCode(); } return(hash); } }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { var hash = 41; // Suitable nullity checks etc, of course :) if (OpTypes != null) { hash = hash * 59 + OpTypes.GetHashCode(); } if (MarketChangeMessage != null) { hash = hash * 59 + MarketChangeMessage.GetHashCode(); } if (Connection != null) { hash = hash * 59 + Connection.GetHashCode(); } if (OrderChangeMessage != null) { hash = hash * 59 + OrderChangeMessage.GetHashCode(); } if (Status != null) { hash = hash * 59 + Status.GetHashCode(); } return(hash); } }