Beispiel #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);
        }
Beispiel #2
0
 public override int GetHashCode()
 {
     return(Volumen.GetHashCode() + EsTeorico.GetHashCode());
 }
Beispiel #3
0
 public override int GetHashCode()
 {
     return(Caudal.GetHashCode() + HsEnMarcha.GetHashCode() + RPM.GetHashCode() + Temperatura.GetHashCode() + Volumen.GetHashCode());
 }