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 { var hash = 17; hash = hash * 29 + RequestId != null?RequestId.GetHashCode() : 0; hash = hash * 29 + Timestamp.GetHashCode(); hash = hash * 29 + High.GetHashCode(); hash = hash * 29 + Low.GetHashCode(); hash = hash * 29 + Open.GetHashCode(); hash = hash * 29 + Close.GetHashCode(); hash = hash * 29 + PeriodVolume.GetHashCode(); hash = hash * 29 + OpenInterest.GetHashCode(); return(hash); } }
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() { var hashCode = -1519320215; hashCode = hashCode * -1521134295 + IsStarted.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(TickerID); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Ticker); hashCode = hashCode * -1521134295 + Type.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(FullName); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Prefix); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Currency); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(ISIN); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Name); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(ShortName); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(ChartName); hashCode = hashCode * -1521134295 + Decimals.GetHashCode(); hashCode = hashCode * -1521134295 + ForgDecimals.GetHashCode(); hashCode = hashCode * -1521134295 + Open.GetHashCode(); hashCode = hashCode * -1521134295 + Close.GetHashCode(); hashCode = hashCode * -1521134295 + Last.GetHashCode(); hashCode = hashCode * -1521134295 + LastHTML.GetHashCode(); hashCode = hashCode * -1521134295 + LastSize.GetHashCode(); hashCode = hashCode * -1521134295 + LastTime.GetHashCode(); hashCode = hashCode * -1521134295 + LastHtmlTime.GetHashCode(); hashCode = hashCode * -1521134295 + Change.GetHashCode(); hashCode = hashCode * -1521134295 + ChangePercentage.GetHashCode(); hashCode = hashCode * -1521134295 + Min.GetHashCode(); hashCode = hashCode * -1521134295 + Max.GetHashCode(); hashCode = hashCode * -1521134295 + DealsCount.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <List <StockDeal> > .Default.GetHashCode(Deals); hashCode = hashCode * -1521134295 + Traffic.GetHashCode(); hashCode = hashCode * -1521134295 + TrafficCount.GetHashCode(); hashCode = hashCode * -1521134295 + OpenInterest.GetHashCode(); hashCode = hashCode * -1521134295 + Status.GetHashCode(); hashCode = hashCode * -1521134295 + PanelJS.GetHashCode(); hashCode = hashCode * -1521134295 + ID.GetHashCode(); hashCode = hashCode * -1521134295 + RealTime.GetHashCode(); hashCode = hashCode * -1521134295 + Pe2000.GetHashCode(); hashCode = hashCode * -1521134295 + Pe2001.GetHashCode(); hashCode = hashCode * -1521134295 + CloseOneMonth.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <TimeSpan> .Default.GetHashCode(CloseOneMonthInterval); hashCode = hashCode * -1521134295 + CloseThreeMonth.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <TimeSpan> .Default.GetHashCode(CloseThreeMonthInterval); hashCode = hashCode * -1521134295 + CloseOneYear.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <TimeSpan> .Default.GetHashCode(CloseOneYearInterval); hashCode = hashCode * -1521134295 + OneMonthVolatility.GetHashCode(); hashCode = hashCode * -1521134295 + ThreeMonthVolatility.GetHashCode(); hashCode = hashCode * -1521134295 + OneYearVolatility.GetHashCode(); hashCode = hashCode * -1521134295 + Eps2000.GetHashCode(); hashCode = hashCode * -1521134295 + Eps2001.GetHashCode(); hashCode = hashCode * -1521134295 + MinOneYear.GetHashCode(); hashCode = hashCode * -1521134295 + MinOneYearAt.GetHashCode(); hashCode = hashCode * -1521134295 + MaxOneYear.GetHashCode(); hashCode = hashCode * -1521134295 + MaxOneYearAt.GetHashCode(); hashCode = hashCode * -1521134295 + MinOfAllTime.GetHashCode(); hashCode = hashCode * -1521134295 + MinOfAllTimeAt.GetHashCode(); hashCode = hashCode * -1521134295 + MaxOfAllTime.GetHashCode(); hashCode = hashCode * -1521134295 + MaxOfAllTimeAt.GetHashCode(); hashCode = hashCode * -1521134295 + CloseMinOneYear.GetHashCode(); hashCode = hashCode * -1521134295 + CloseMinOneYearAt.GetHashCode(); hashCode = hashCode * -1521134295 + CloseMaxOneYear.GetHashCode(); hashCode = hashCode * -1521134295 + CloseMaxOneYearAt.GetHashCode(); hashCode = hashCode * -1521134295 + CloseMinAllTime.GetHashCode(); hashCode = hashCode * -1521134295 + CloseMinAllTimeAt.GetHashCode(); hashCode = hashCode * -1521134295 + CloseMaxOfAllTime.GetHashCode(); hashCode = hashCode * -1521134295 + CloseMaxAllTimeAt.GetHashCode(); hashCode = hashCode * -1521134295 + TrafficAvgInSixMonth.GetHashCode(); hashCode = hashCode * -1521134295 + TrafficAvgInOneYear.GetHashCode(); hashCode = hashCode * -1521134295 + StartCount.GetHashCode(); hashCode = hashCode * -1521134295 + Kapit.GetHashCode(); hashCode = hashCode * -1521134295 + BuxKapit.GetHashCode(); hashCode = hashCode * -1521134295 + ChangeInOneMonth.GetHashCode(); hashCode = hashCode * -1521134295 + ChangeInThreeMonth.GetHashCode(); hashCode = hashCode * -1521134295 + ChangeInOneYear.GetHashCode(); hashCode = hashCode * -1521134295 + StartPrice.GetHashCode(); hashCode = hashCode * -1521134295 + MinInOneYear.GetHashCode(); hashCode = hashCode * -1521134295 + MaxInOneYear.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <ChartData> .Default.GetHashCode(ImageData); return(hashCode); }
public override int GetHashCode() { int hash = 1; if (TradingDay.Length != 0) { hash ^= TradingDay.GetHashCode(); } if (InstrumentId.Length != 0) { hash ^= InstrumentId.GetHashCode(); } if (ExchangeId.Length != 0) { hash ^= ExchangeId.GetHashCode(); } if (LastPrice != 0D) { hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(LastPrice); } if (PreSettlementPrice != 0D) { hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(PreSettlementPrice); } if (PreClosePrice != 0D) { hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(PreClosePrice); } if (PreOpenInterest != 0) { hash ^= PreOpenInterest.GetHashCode(); } if (OpenPrice != 0D) { hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(OpenPrice); } if (HighestPrice != 0D) { hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(HighestPrice); } if (LowestPrice != 0D) { hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(LowestPrice); } if (Volume != 0) { hash ^= Volume.GetHashCode(); } if (TurnOver != 0D) { hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TurnOver); } if (OpenInterest != 0) { hash ^= OpenInterest.GetHashCode(); } if (ClosePrice != 0D) { hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ClosePrice); } if (SettlementPrice != 0D) { hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(SettlementPrice); } if (UpperLimitPrice != 0D) { hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(UpperLimitPrice); } if (LowerLimitPrice != 0D) { hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(LowerLimitPrice); } if (UpdateTime.Length != 0) { hash ^= UpdateTime.GetHashCode(); } if (UpdateMillisec != 0) { hash ^= UpdateMillisec.GetHashCode(); } if (AveragePrice != 0D) { hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(AveragePrice); } if (ActionDay.Length != 0) { hash ^= ActionDay.GetHashCode(); } if (BidPrice != 0D) { hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(BidPrice); } if (BidVolume != 0) { hash ^= BidVolume.GetHashCode(); } if (AskPrice != 0D) { hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(AskPrice); } if (AskVolume != 0) { hash ^= AskVolume.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
/// <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 (UnderlyingIndex != null) { hashCode = hashCode * 59 + UnderlyingIndex.GetHashCode(); } if (Volume != null) { hashCode = hashCode * 59 + Volume.GetHashCode(); } if (VolumeUsd != null) { hashCode = hashCode * 59 + VolumeUsd.GetHashCode(); } if (UnderlyingPrice != null) { hashCode = hashCode * 59 + UnderlyingPrice.GetHashCode(); } if (BidPrice != null) { hashCode = hashCode * 59 + BidPrice.GetHashCode(); } if (OpenInterest != null) { hashCode = hashCode * 59 + OpenInterest.GetHashCode(); } if (QuoteCurrency != null) { hashCode = hashCode * 59 + QuoteCurrency.GetHashCode(); } if (High != null) { hashCode = hashCode * 59 + High.GetHashCode(); } if (EstimatedDeliveryPrice != null) { hashCode = hashCode * 59 + EstimatedDeliveryPrice.GetHashCode(); } if (Last != null) { hashCode = hashCode * 59 + Last.GetHashCode(); } if (MidPrice != null) { hashCode = hashCode * 59 + MidPrice.GetHashCode(); } if (InterestRate != null) { hashCode = hashCode * 59 + InterestRate.GetHashCode(); } if (Funding8h != null) { hashCode = hashCode * 59 + Funding8h.GetHashCode(); } if (MarkPrice != null) { hashCode = hashCode * 59 + MarkPrice.GetHashCode(); } if (AskPrice != null) { hashCode = hashCode * 59 + AskPrice.GetHashCode(); } if (InstrumentName != null) { hashCode = hashCode * 59 + InstrumentName.GetHashCode(); } if (Low != null) { hashCode = hashCode * 59 + Low.GetHashCode(); } if (BaseCurrency != null) { hashCode = hashCode * 59 + BaseCurrency.GetHashCode(); } if (CreationTimestamp != null) { hashCode = hashCode * 59 + CreationTimestamp.GetHashCode(); } if (CurrentFunding != null) { hashCode = hashCode * 59 + CurrentFunding.GetHashCode(); } return(hashCode); } }