Exemple #1
0
        public override int GetHashCode()
        {
            int hash = 11;

            hash = hash * 13 + Id.GetHashCode();
            hash = hash * 13 + Price.GetHashCode();
            hash = hash * 13 + BidTime.GetHashCode();
            hash = hash * 13 + BidOwnerId.GetHashCode();
            hash = hash * 13 + AuctionId.GetHashCode();
            return(hash);
        }
Exemple #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Id.GetHashCode();
         hashCode = (hashCode * 397) ^ Amount.GetHashCode();
         hashCode = (hashCode * 397) ^ UserId.GetHashCode();
         hashCode = (hashCode * 397) ^ AuctionId.GetHashCode();
         hashCode = (hashCode * 397) ^ DateTime.GetHashCode();
         return(hashCode);
     }
 }