Ejemplo n.º 1
0
 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);
     }
 }
Ejemplo n.º 2
0
        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);
        }