public override int GetHashCode() { unchecked { var hashCode = StockId.GetHashCode(); hashCode = (hashCode * 397) ^ BuyOrderId.GetHashCode(); hashCode = (hashCode * 397) ^ SellOrderId.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = StockId.GetHashCode(); hashCode = (hashCode * 397) ^ BidPrice.GetHashCode(); hashCode = (hashCode * 397) ^ BidQuantity.GetHashCode(); hashCode = (hashCode * 397) ^ OrderId.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { int hash = 1; if (StockId.Length != 0) { hash ^= StockId.GetHashCode(); } hash ^= priceUpdates_.GetHashCode(); hash ^= volumeUpdates_.GetHashCode(); return(hash); }
public override int GetHashCode() { unchecked { var hashCode = OrderId.GetHashCode(); hashCode = (hashCode * 397) ^ StockId.GetHashCode(); hashCode = (hashCode * 397) ^ (int)Side; hashCode = (hashCode * 397) ^ OriginalQuantity.GetHashCode(); hashCode = (hashCode * 397) ^ Price.GetHashCode(); hashCode = (hashCode * 397) ^ Fills.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { int hash = 1; if (StockId.Length != 0) { hash ^= StockId.GetHashCode(); } if (CurrentAvgVolume != 0D) { hash ^= CurrentAvgVolume.GetHashCode(); } if (TimeIssued != 0L) { hash ^= TimeIssued.GetHashCode(); } return(hash); }