Beispiel #1
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (ReferenceNumber != null)
         {
             hashCode = hashCode * 59 + ReferenceNumber.GetHashCode();
         }
         if (ItemNumber != null)
         {
             hashCode = hashCode * 59 + ItemNumber.GetHashCode();
         }
         if (Quantity != null)
         {
             hashCode = hashCode * 59 + Quantity.GetHashCode();
         }
         if (DispositionType != null)
         {
             hashCode = hashCode * 59 + DispositionType.GetHashCode();
         }
         if (DispositionInstructions != null)
         {
             hashCode = hashCode * 59 + DispositionInstructions.GetHashCode();
         }
         if (Labels != null)
         {
             hashCode = hashCode * 59 + Labels.GetHashCode();
         }
         return(hashCode);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (ReferenceNumber != null)
         {
             hashCode = hashCode * 59 + ReferenceNumber.GetHashCode();
         }
         if (ItemNumber != null)
         {
             hashCode = hashCode * 59 + ItemNumber.GetHashCode();
         }
         if (Quantity != null)
         {
             hashCode = hashCode * 59 + Quantity.GetHashCode();
         }
         if (ReturnReason != null)
         {
             hashCode = hashCode * 59 + ReturnReason.GetHashCode();
         }
         if (ReasonText != null)
         {
             hashCode = hashCode * 59 + ReasonText.GetHashCode();
         }
         return(hashCode);
     }
 }
        public override int GetHashCode()
        {
            if (ReferenceNumber == null)
            {
                return(base.GetHashCode());
            }

            return(ReferenceNumber.GetHashCode());
        }
Beispiel #4
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (ReferenceNumber != null)
         {
             hashCode = hashCode * 59 + ReferenceNumber.GetHashCode();
         }
         if (ItemNumber != null)
         {
             hashCode = hashCode * 59 + ItemNumber.GetHashCode();
         }
         if (Quantity != null)
         {
             hashCode = hashCode * 59 + Quantity.GetHashCode();
         }
         if (UnitSellPrice != null)
         {
             hashCode = hashCode * 59 + UnitSellPrice.GetHashCode();
         }
         if (UnitItemTaxPrice != null)
         {
             hashCode = hashCode * 59 + UnitItemTaxPrice.GetHashCode();
         }
         if (UnitShippingPrice != null)
         {
             hashCode = hashCode * 59 + UnitShippingPrice.GetHashCode();
         }
         if (UnitShippingTaxPrice != null)
         {
             hashCode = hashCode * 59 + UnitShippingTaxPrice.GetHashCode();
         }
         if (Coupons != null)
         {
             hashCode = hashCode * 59 + Coupons.GetHashCode();
         }
         if (LinkedFees != null)
         {
             hashCode = hashCode * 59 + LinkedFees.GetHashCode();
         }
         if (DeliveryDetail != null)
         {
             hashCode = hashCode * 59 + DeliveryDetail.GetHashCode();
         }
         return(hashCode);
     }
 }
Beispiel #5
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (ReferenceNumber != null)
         {
             hashCode = hashCode * 59 + ReferenceNumber.GetHashCode();
         }
         if (FirstName != null)
         {
             hashCode = hashCode * 59 + FirstName.GetHashCode();
         }
         if (LastName != null)
         {
             hashCode = hashCode * 59 + LastName.GetHashCode();
         }
         if (Address1 != null)
         {
             hashCode = hashCode * 59 + Address1.GetHashCode();
         }
         if (Address2 != null)
         {
             hashCode = hashCode * 59 + Address2.GetHashCode();
         }
         if (City != null)
         {
             hashCode = hashCode * 59 + City.GetHashCode();
         }
         if (State != null)
         {
             hashCode = hashCode * 59 + State.GetHashCode();
         }
         if (CountryCode != null)
         {
             hashCode = hashCode * 59 + CountryCode.GetHashCode();
         }
         if (PostalCode != null)
         {
             hashCode = hashCode * 59 + PostalCode.GetHashCode();
         }
         if (PhoneNumber != null)
         {
             hashCode = hashCode * 59 + PhoneNumber.GetHashCode();
         }
         return(hashCode);
     }
 }
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (ReferenceNumber != null)
         {
             hashCode = hashCode * 59 + ReferenceNumber.GetHashCode();
         }
         if (ItemNumber != null)
         {
             hashCode = hashCode * 59 + ItemNumber.GetHashCode();
         }
         if (LinkedFees != null)
         {
             hashCode = hashCode * 59 + LinkedFees.GetHashCode();
         }
         return(hashCode);
     }
 }