Exemplo n.º 1
0
        /// <summary>
        /// Recommended GetHashCode() override when overriding Equals() (IDE generated code]
        /// </summary>
        /// <returns></returns>
        public override int GetHashCode()
        {
            int hashCode = 1752065002;

            //hashCode = hashCode * -1521134295 + SoldDate.GetHashCode();
            hashCode = hashCode * -1521134295 + SaleAmount.GetHashCode();
            hashCode = hashCode * -1521134295 + MarketDate.GetHashCode();
            return(hashCode);
        }
        public override int GetHashCode()
        {
            var hashCode = 903327883;

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

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

            hashCode = hashCode * -1521134295 + SaleAmount.GetHashCode();
            hashCode = hashCode * -1521134295 + SoldDate.GetHashCode();
            return(hashCode);
        }