public override int GetHashCode() { int hash = 1; if (Type != 0) { hash ^= Type.GetHashCode(); } if (command_ != null) { hash ^= Command.GetHashCode(); } if (bid_ != null) { hash ^= Bid.GetHashCode(); } if (action_ != null) { hash ^= Action.GetHashCode(); } if (stage_ != null) { hash ^= Stage.GetHashCode(); } if (Message.Length != 0) { hash ^= Message.GetHashCode(); } if (Status != false) { hash ^= Status.GetHashCode(); } return(hash); }
public override int GetHashCode() { unchecked { int hashCode = (SecurityCode != null ? SecurityCode.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (OptionNumber != null ? OptionNumber.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (OptionCode != null ? OptionCode.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Bid.GetHashCode(); hashCode = (hashCode * 397) ^ BidVolume.GetHashCode(); hashCode = (hashCode * 397) ^ Ask.GetHashCode(); hashCode = (hashCode * 397) ^ AskVolume.GetHashCode(); hashCode = (hashCode * 397) ^ Volume.GetHashCode(); hashCode = (hashCode * 397) ^ Bid2.GetHashCode(); hashCode = (hashCode * 397) ^ BidVolume2.GetHashCode(); hashCode = (hashCode * 397) ^ Ask2.GetHashCode(); hashCode = (hashCode * 397) ^ AskVolume2.GetHashCode(); hashCode = (hashCode * 397) ^ Bid3.GetHashCode(); hashCode = (hashCode * 397) ^ BidVolume3.GetHashCode(); hashCode = (hashCode * 397) ^ Ask3.GetHashCode(); hashCode = (hashCode * 397) ^ AskVolume3.GetHashCode(); hashCode = (hashCode * 397) ^ Bid4.GetHashCode(); hashCode = (hashCode * 397) ^ BidVolume4.GetHashCode(); hashCode = (hashCode * 397) ^ Ask4.GetHashCode(); hashCode = (hashCode * 397) ^ AskVolume4.GetHashCode(); hashCode = (hashCode * 397) ^ Bid5.GetHashCode(); hashCode = (hashCode * 397) ^ BidVolume5.GetHashCode(); hashCode = (hashCode * 397) ^ Ask5.GetHashCode(); hashCode = (hashCode * 397) ^ AskVolume5.GetHashCode(); hashCode = (hashCode * 397) ^ (Greeks != null ? Greeks.GetHashCode() : 0); hashCode = (hashCode * 397) ^ OpenInterest.GetHashCode(); hashCode = (hashCode * 397) ^ Turnover.GetHashCode(); hashCode = (hashCode * 397) ^ UncoveredPositionQuantity.GetHashCode(); hashCode = (hashCode * 397) ^ PreviousSettlementPrice.GetHashCode(); hashCode = (hashCode * 397) ^ OpeningPrice.GetHashCode(); hashCode = (hashCode * 397) ^ AuctionReferencePrice.GetHashCode(); hashCode = (hashCode * 397) ^ AuctionReferenceQuantity.GetHashCode(); hashCode = (hashCode * 397) ^ HighestPrice.GetHashCode(); hashCode = (hashCode * 397) ^ LowestPrice.GetHashCode(); hashCode = (hashCode * 397) ^ LatestTradedPrice.GetHashCode(); hashCode = (hashCode * 397) ^ Change.GetHashCode(); hashCode = (hashCode * 397) ^ ChangePercentage.GetHashCode(); hashCode = (hashCode * 397) ^ PreviousClose.GetHashCode(); hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { unchecked { int hashCode = Instrument?.GetHashCode() ?? 0; hashCode = (hashCode * 397) ^ Bid.GetHashCode(); hashCode = (hashCode * 397) ^ Offer.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { unchecked { int hashCode = (Instrument != null ? Instrument.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Bid.GetHashCode(); hashCode = (hashCode * 397) ^ Offer.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { unchecked { int hashCode = (EntityId != null ? EntityId.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Bid.GetHashCode(); hashCode = (hashCode * 397) ^ Offer.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { return (Ask.GetHashCode() ^ Bid.GetHashCode() ^ Last.GetHashCode() ^ Pair.GetHashCode() ^ Volume.GetHashCode() ^ UnixTimeStamp.GetHashCode() ^ SourceExchange.GetHashCode()); }
public override int GetHashCode() { unchecked { var hashCode = MarketId; hashCode = (hashCode * 397) ^ Bid.GetHashCode(); hashCode = (hashCode * 397) ^ Mid.GetHashCode(); hashCode = (hashCode * 397) ^ Ask.GetHashCode(); return(hashCode); } }
public override int GetHashCodeCore() { unchecked { var hashCode = 13; hashCode = (hashCode * 397) ^ Pair.GetHashCode(); hashCode = (hashCode * 397) ^ Bid.GetHashCode(); hashCode = (hashCode * 397) ^ Ask.GetHashCode(); hashCode = (hashCode * 397) ^ ValueDate.GetHashCode(); return(hashCode); } }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; // Suitable nullity checks etc, of course :) if (Ch != null) { hashCode = hashCode * 59 + Ch.GetHashCode(); } if (Chp != null) { hashCode = hashCode * 59 + Chp.GetHashCode(); } if (Lp != null) { hashCode = hashCode * 59 + Lp.GetHashCode(); } if (Ask != null) { hashCode = hashCode * 59 + Ask.GetHashCode(); } if (Bid != null) { hashCode = hashCode * 59 + Bid.GetHashCode(); } if (OpenPrice != null) { hashCode = hashCode * 59 + OpenPrice.GetHashCode(); } if (HighPrice != null) { hashCode = hashCode * 59 + HighPrice.GetHashCode(); } if (LowPrice != null) { hashCode = hashCode * 59 + LowPrice.GetHashCode(); } if (PrevClosePrice != null) { hashCode = hashCode * 59 + PrevClosePrice.GetHashCode(); } if (Volume != null) { hashCode = hashCode * 59 + Volume.GetHashCode(); } return(hashCode); } }
public override int GetHashCode() { unchecked { var hash = 17; hash = hash * 29 + RequestId != null?RequestId.GetHashCode() : 0; hash = hash * 29 + Symbol.GetHashCode(); hash = hash * 29 + ExchangeId.GetHashCode(); hash = hash * 29 + SecurityType.GetHashCode(); hash = hash * 29 + (Last.HasValue ? Last.GetHashCode() : 0); hash = hash * 29 + (TradeSize.HasValue ? TradeSize.GetHashCode() : 0); hash = hash * 29 + (TradedMarket.HasValue ? TradedMarket.GetHashCode() : 0); hash = hash * 29 + (TradeDate.HasValue ? TradeDate.GetHashCode() : 0); hash = hash * 29 + (TradeTime.HasValue ? TradeTime.GetHashCode() : 0); hash = hash * 29 + (Open.HasValue ? Open.GetHashCode() : 0); hash = hash * 29 + (High.HasValue ? High.GetHashCode() : 0); hash = hash * 29 + (Low.HasValue ? Low.GetHashCode() : 0); hash = hash * 29 + (Close.HasValue ? Close.GetHashCode() : 0); hash = hash * 29 + (Bid.HasValue ? Bid.GetHashCode() : 0); hash = hash * 29 + (BidMarket.HasValue ? BidMarket.GetHashCode() : 0); hash = hash * 29 + (BidSize.HasValue ? BidSize.GetHashCode() : 0); hash = hash * 29 + (Ask.HasValue ? Ask.GetHashCode() : 0); hash = hash * 29 + (AskMarket.HasValue ? AskMarket.GetHashCode() : 0); hash = hash * 29 + (AskSize.HasValue ? AskSize.GetHashCode() : 0); hash = hash * 29 + (Volume.HasValue ? Volume.GetHashCode() : 0); hash = hash * 29 + (PDayVolume.HasValue ? PDayVolume.GetHashCode() : 0); hash = hash * 29 + (UpVolume.HasValue ? UpVolume.GetHashCode() : 0); hash = hash * 29 + (DownVolume.HasValue ? DownVolume.GetHashCode() : 0); hash = hash * 29 + (NeutralVolume.HasValue ? NeutralVolume.GetHashCode() : 0); hash = hash * 29 + (TradeCount.HasValue ? TradeCount.GetHashCode() : 0); hash = hash * 29 + (UpTrades.HasValue ? UpTrades.GetHashCode() : 0); hash = hash * 29 + (DownTrades.HasValue ? DownTrades.GetHashCode() : 0); hash = hash * 29 + (NeutralTrades.HasValue ? NeutralTrades.GetHashCode() : 0); hash = hash * 29 + (VWAP.HasValue ? VWAP.GetHashCode() : 0); hash = hash * 29 + (MutualDiv.HasValue ? MutualDiv.GetHashCode() : 0); hash = hash * 29 + (SevenDayYield.HasValue ? SevenDayYield.GetHashCode() : 0); hash = hash * 29 + (OpenInterest.HasValue ? OpenInterest.GetHashCode() : 0); hash = hash * 29 + (Settlement.HasValue ? Settlement.GetHashCode() : 0); hash = hash * 29 + (SettlementDate.HasValue ? SettlementDate.GetHashCode() : 0); hash = hash * 29 + (ExpirationDate.HasValue ? ExpirationDate.GetHashCode() : 0); hash = hash * 29 + (Strike.HasValue ? Strike.GetHashCode() : 0); return(hash); } }
public override int GetHashCode() { unchecked { var hash = 17; hash = hash * 29 + Timestamp.GetHashCode(); hash = hash * 29 + Last.GetHashCode(); hash = hash * 29 + LastSize.GetHashCode(); hash = hash * 29 + TotalVolume.GetHashCode(); hash = hash * 29 + Bid.GetHashCode(); hash = hash * 29 + Ask.GetHashCode(); hash = hash * 29 + TickId.GetHashCode(); hash = hash * 29 + BasisForLast.GetHashCode(); hash = hash * 29 + TradeMarketCenter.GetHashCode(); hash = hash * 29 + TradeConditions.GetHashCode(); return(hash); } }
public override int GetHashCode() { unchecked { var hash = 17; hash = hash * 29 + Symbol.GetHashCode(); hash = hash * 29 + MMID.GetHashCode(); hash = hash * 29 + Bid.GetHashCode(); hash = hash * 29 + Ask.GetHashCode(); hash = hash * 29 + BidSize.GetHashCode(); hash = hash * 29 + AskSize.GetHashCode(); hash = hash * 29 + BidTime.GetHashCode(); hash = hash * 29 + BidSize.GetHashCode(); hash = hash * 29 + Date.GetHashCode(); hash = hash * 29 + ConditionCode.GetHashCode(); hash = hash * 29 + AskTime.GetHashCode(); hash = hash * 29 + BidInfoValid.GetHashCode(); hash = hash * 29 + AskInfoValid.GetHashCode(); hash = hash * 29 + EndOfMessageGroup.GetHashCode(); return(hash); } }
public override int GetHashCode() { int hash = 1; if (Level_ != 0) { hash ^= Level_.GetHashCode(); } if (bid_ != null) { hash ^= Bid.GetHashCode(); } if (ask_ != null) { hash ^= Ask.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { unchecked { var hash = 17; hash = hash * 29 + Symbol.GetHashCode(); hash = hash * 29 + MostRecentTrade.GetHashCode(); hash = hash * 29 + MostRecentTradeSize.GetHashCode(); hash = hash * 29 + MostRecentTradeTime.GetHashCode(); hash = hash * 29 + MostRecentTradeMarketCenter.GetHashCode(); hash = hash * 29 + TotalVolume.GetHashCode(); hash = hash * 29 + Bid.GetHashCode(); hash = hash * 29 + BidSize.GetHashCode(); hash = hash * 29 + Ask.GetHashCode(); hash = hash * 29 + AskSize.GetHashCode(); hash = hash * 29 + Open.GetHashCode(); hash = hash * 29 + High.GetHashCode(); hash = hash * 29 + Low.GetHashCode(); hash = hash * 29 + Close.GetHashCode(); hash = hash * 29 + MessageContents.GetHashCode(); hash = hash * 29 + MostRecentTradeConditions.GetHashCode(); return(hash); } }
GetHashCode() { return(Bid.GetHashCode() ^ Ask.GetHashCode()); }