Exemplo n.º 1
0
        /// <summary>
        /// Serves as the default hash function.
        /// </summary>
        /// <returns></returns>
        public override int GetHashCode()
        {
            var hashCode = 378868840;

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Name);

            hashCode = hashCode * -1521134295 + ClosingPrice.GetHashCode();
            hashCode = hashCode * -1521134295 + DateTime.GetHashCode();
            hashCode = hashCode * -1521134295 + Volumen.GetHashCode();
            hashCode = hashCode * -1521134295 + PreviousDayClosingPrice.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(StockExchange);

            return(hashCode);
        }
Exemplo n.º 2
0
        public override int GetHashCode()
        {
            var hashCode = 1319828343;

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Name);

            hashCode = hashCode * -1521134295 + ClosingPrice.GetHashCode();
            hashCode = hashCode * -1521134295 + QtyInBuyingPacket.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <ITechnicalAnalysis> .Default.GetHashCode(TechnicalAnalysis);

            hashCode = hashCode * -1521134295 + EqualityComparer <IFinancialAnalysis> .Default.GetHashCode(FinancialAnalysis);

            return(hashCode);
        }