public override int GetHashCode() { int hash = 1; if (entityId_ != null) { hash ^= EntityId.GetHashCode(); } if (Description.Length != 0) { hash ^= Description.GetHashCode(); } if (taxRate_ != null) { hash ^= TaxRate.GetHashCode(); } if (Category != 0) { hash ^= Category.GetHashCode(); } if (liabilityAccountId_ != null) { hash ^= LiabilityAccountId.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (OrderID.Length != 0) { hash ^= OrderID.GetHashCode(); } if (CreatedOn != 0UL) { hash ^= CreatedOn.GetHashCode(); } if (UserID.Length != 0) { hash ^= UserID.GetHashCode(); } if (TaxRate != 0) { hash ^= TaxRate.GetHashCode(); } if (shippingInfo_ != null) { hash ^= ShippingInfo.GetHashCode(); } hash ^= lineItems_.GetHashCode(); return(hash); }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hashCode = 41; if (Name != null) { hashCode = hashCode * 59 + Name.GetHashCode(); } if (Description != null) { hashCode = hashCode * 59 + Description.GetHashCode(); } if (MerchantSuppliedId != null) { hashCode = hashCode * 59 + MerchantSuppliedId.GetHashCode(); } if (Active != null) { hashCode = hashCode * 59 + Active.GetHashCode(); } if (IsAlcohol != null) { hashCode = hashCode * 59 + IsAlcohol.GetHashCode(); } if (IsBikeFriendly != null) { hashCode = hashCode * 59 + IsBikeFriendly.GetHashCode(); } if (SortId != null) { hashCode = hashCode * 59 + SortId.GetHashCode(); } if (Price != null) { hashCode = hashCode * 59 + Price.GetHashCode(); } if (BasePrice != null) { hashCode = hashCode * 59 + BasePrice.GetHashCode(); } if (Extras != null) { hashCode = hashCode * 59 + Extras.GetHashCode(); } if (TaxRate != null) { hashCode = hashCode * 59 + TaxRate.GetHashCode(); } if (OriginalImageUrl != null) { hashCode = hashCode * 59 + OriginalImageUrl.GetHashCode(); } return(hashCode); } }
public override int GetHashCode() { unchecked { int hash = 17; hash = hash * 23 + (ModifiedDate == default(DateTime) ? 0 : ModifiedDate.GetHashCode()); hash = hash * 23 + (Name == null ? 0 : Name.GetHashCode()); hash = hash * 23 + (Rowguid == default(Guid) ? 0 : Rowguid.GetHashCode()); hash = hash * 23 + (StateProvinceId == default(int) ? 0 : StateProvinceId.GetHashCode()); hash = hash * 23 + (TaxRate == default(decimal) ? 0 : TaxRate.GetHashCode()); hash = hash * 23 + (TaxType == default(byte) ? 0 : TaxType.GetHashCode()); return(hash); } }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hashCode = 41; if (Name != null) { hashCode = hashCode * 59 + Name.GetHashCode(); } if (Description != null) { hashCode = hashCode * 59 + Description.GetHashCode(); } if (MerchantSuppliedId != null) { hashCode = hashCode * 59 + MerchantSuppliedId.GetHashCode(); } if (Active != null) { hashCode = hashCode * 59 + Active.GetHashCode(); } if (Price != null) { hashCode = hashCode * 59 + Price.GetHashCode(); } if (BasePrice != null) { hashCode = hashCode * 59 + BasePrice.GetHashCode(); } if (Default != null) { hashCode = hashCode * 59 + Default.GetHashCode(); } if (SortId != null) { hashCode = hashCode * 59 + SortId.GetHashCode(); } if (TaxRate != null) { hashCode = hashCode * 59 + TaxRate.GetHashCode(); } if (Extras != null) { hashCode = hashCode * 59 + Extras.GetHashCode(); } return(hashCode); } }