예제 #1
0
 public override Int32 GetHashCode()
 {
     return(ShopCode.GetHashCode()
            ^ ArticleCode.GetHashCode()
            ^ ColorCode.GetHashCode()
            ^ SizeCode.GetHashCode());
 }
예제 #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);
        }
예제 #3
0
 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());
 }