Exemple #1
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);
        }
Exemple #2
0
        public override string ToString()
        {
            AuctionatorContext Context = new AuctionatorContext();
            string             auction = "Item: " + Item + " ,Amount: " + Amount.ToString() + " ,StartPrice: " + StartPrice.ToString();
            bool found = false;
            int  price = 0;

            Context.Bids.ToList().ForEach(b =>
            {
                if (b.Id == HighestBid)
                {
                    found = true;
                    price = b.BidPrice;
                }
            });
            if (found)
            {
                auction += " ,Highest Bid: " + price.ToString() + " by: ";
                Context.Users.ToList().ForEach(u =>
                {
                    if (u.Id == HighestBid)
                    {
                        auction += u.Name;
                    }
                });
            }
            else
            {
                auction += " ,Highest Bid: None";
            }
            Context.Users.ToList().ForEach(u =>
            {
                if (u.Id == Seller)
                {
                    auction += " ,Sold by: " + u.Name;
                }
            });
            return(auction);
        }