public override int GetHashCode() { return(Id.GetHashCode() ^ TakenOrderId.GetHashCode() ^ TakerOrderId.GetHashCode() ^ TakerSide.GetHashCode() ^ Price.GetHashCode() ^ ExecutedSize.GetHashCode() ^ RemainingSize.GetHashCode() ^ TakenUserId.GetHashCode() ^ TakerUserId.GetHashCode()); }
public override int GetHashCode() { int hash = 0; if (hashCode > 0) { hash = hashCode; } else { hash = (ChildOrderAcceptanceId.GetHashCode() * 2) + ((ChildOrderId == null ? 1 : ChildOrderId.GetHashCode()) * 3) + (RemainingSize.GetHashCode() * 5) + (AveragePrice.GetHashCode() * 7); } return(hash); }