Exemple #1
0
 public override Int32 GetHashCode()
 {
     return(ShopCode.GetHashCode()
            ^ ArticleCode.GetHashCode()
            ^ ColorCode.GetHashCode()
            ^ SizeCode.GetHashCode());
 }
Exemple #2
0
        public override int GetHashCode()
        {
            var hashCode = 0;

            if (ArticleCode != null)
            {
                hashCode ^= ArticleCode.GetHashCode();
            }

            if (ColorCode != null)
            {
                hashCode ^= ColorCode.GetHashCode();
            }

            if (SizeCode != null)
            {
                hashCode ^= SizeCode.GetHashCode();
            }

            return(hashCode);
        }
 protected override int HashCode()
 {
     return(Key.GetHashCode() ^ ArtikleCode.GetHashCode() ^ ColorCode.GetHashCode() ^ Description.GetHashCode() ^
            Price.GetHashCode() ^ DiscountPrice.GetHashCode() ^ DeliveredIn.GetHashCode() ^ Q1.GetHashCode() ^ Size.GetHashCode() ^ Color.GetHashCode());
 }