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 = (StockExchange != null ? StockExchange.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (TradeSector != null ? TradeSector.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (SecurityCode != null ? SecurityCode.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (SecurityName != null ? SecurityName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (SecurityClass != null ? SecurityClass.GetHashCode() : 0); hashCode = (hashCode * 397) ^ HasOptions.GetHashCode(); hashCode = (hashCode * 397) ^ (SecurityStatus != null ? SecurityStatus.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Currency != null ? Currency.GetHashCode() : 0); hashCode = (hashCode * 397) ^ LimitUpPrice.GetHashCode(); hashCode = (hashCode * 397) ^ LimitDownPrice.GetHashCode(); hashCode = (hashCode * 397) ^ LotSize.GetHashCode(); hashCode = (hashCode * 397) ^ (LotFlag != null ? LotFlag.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (SuspendedFlag != null ? SuspendedFlag.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (SecuritySubClass != null ? SecuritySubClass.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (UnderlyinSecurityCode != null ? UnderlyinSecurityCode.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (SecurityLevel != null ? SecurityLevel.GetHashCode() : 0); hashCode = (hashCode * 397) ^ PreviousClose.GetHashCode(); hashCode = (hashCode * 397) ^ OpenPrice.GetHashCode(); hashCode = (hashCode * 397) ^ Turnover.GetHashCode(); hashCode = (hashCode * 397) ^ HighPrice.GetHashCode(); hashCode = (hashCode * 397) ^ LowPrice.GetHashCode(); hashCode = (hashCode * 397) ^ LastPrice.GetHashCode(); hashCode = (hashCode * 397) ^ CurrentBidPrice.GetHashCode(); hashCode = (hashCode * 397) ^ CurrentAskPrice.GetHashCode(); hashCode = (hashCode * 397) ^ Volume.GetHashCode(); hashCode = (hashCode * 397) ^ PERatio.GetHashCode(); hashCode = (hashCode * 397) ^ BuyVolume1.GetHashCode(); hashCode = (hashCode * 397) ^ SellVolume1.GetHashCode(); hashCode = (hashCode * 397) ^ BuyPrice2.GetHashCode(); hashCode = (hashCode * 397) ^ BuyVolume2.GetHashCode(); hashCode = (hashCode * 397) ^ SellPrice2.GetHashCode(); hashCode = (hashCode * 397) ^ SellVolume2.GetHashCode(); hashCode = (hashCode * 397) ^ BuyPrice3.GetHashCode(); hashCode = (hashCode * 397) ^ BuyVolume3.GetHashCode(); hashCode = (hashCode * 397) ^ SellPrice3.GetHashCode(); hashCode = (hashCode * 397) ^ SellVolume3.GetHashCode(); hashCode = (hashCode * 397) ^ BuyPrice4.GetHashCode(); hashCode = (hashCode * 397) ^ BuyVolume4.GetHashCode(); hashCode = (hashCode * 397) ^ SellPrice4.GetHashCode(); hashCode = (hashCode * 397) ^ SellVolume4.GetHashCode(); hashCode = (hashCode * 397) ^ BuyPrice5.GetHashCode(); hashCode = (hashCode * 397) ^ BuyVolume5.GetHashCode(); hashCode = (hashCode * 397) ^ SellPrice5.GetHashCode(); hashCode = (hashCode * 397) ^ SellVolume5.GetHashCode(); return(hashCode); } }