/// <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); } }
/// <summary> /// Serves as a hash function for a particular type. /// </summary> /// <returns> /// A hash code for the current <see cref="T:System.Object"/>. /// </returns> /// <filterpriority>2</filterpriority> public override int GetHashCode() { unchecked { return(((ItemNumber != null ? ItemNumber.GetHashCode() : 0) * 397) ^ (YearQuarter != null ? YearQuarter.GetHashCode() : 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() { unchecked { var hashCode = ItemNumber.GetHashCode(); hashCode = (hashCode * 397) ^ (int)PriceType; hashCode = (hashCode * 397) ^ (int)PeriodType; hashCode = (hashCode * 397) ^ Period.GetHashCode(); hashCode = (hashCode * 397) ^ Color.GetHashCode(); hashCode = (hashCode * 397) ^ (int)Effect; 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 (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); } }
/// <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); } }