示例#1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = ChargeIntervalFrequency.GetHashCode();
         hashCode = (hashCode * 397) ^ CutoffDayOfMonth.GetHashCode();
         hashCode = (hashCode * 397) ^ CutoffDayOfWeek.GetHashCode();
         hashCode = (hashCode * 397) ^ ExpireAfterSpecificNumberOfCharges.GetHashCode();
         hashCode = (hashCode * 397) ^ (Handle != null ? Handle.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ NumberChargesUntilExpiration.GetHashCode();
         hashCode = (hashCode * 397) ^ OrderDayOfMonth.GetHashCode();
         hashCode = (hashCode * 397) ^ (OrderDayOfWeek != null ? OrderDayOfWeek.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ OrderIntervalFrequency.GetHashCode();
         hashCode = (hashCode * 397) ^ (OrderIntervalUnit != null ? OrderIntervalUnit.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (StorefrontPurchaseOptions != null ? StorefrontPurchaseOptions.GetHashCode() : 0);
         return(hashCode);
     }
 }
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = AddressId.GetHashCode();
         hashCode = (hashCode * 397) ^ NextChargeScheduledAt.GetHashCode();
         hashCode = (hashCode * 397) ^ ShopifyVariantId.GetHashCode();
         hashCode = (hashCode * 397) ^ Quantity.GetHashCode();
         hashCode = (hashCode * 397) ^ (OrderIntervalUnit != null ? OrderIntervalUnit.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (OrderIntervalFrequency != null ? OrderIntervalFrequency.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ NumberChargesUntilExpiration.GetHashCode();
         hashCode = (hashCode * 397) ^ (ChargeIntervalFrequency != null ? ChargeIntervalFrequency.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ CustomerId.GetHashCode();
         hashCode = (hashCode * 397) ^ (Status != null ? Status.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Price.GetHashCode();
         hashCode = (hashCode * 397) ^ (ProductTitle != null ? ProductTitle.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ OrderDayOfMonth.GetHashCode();
         hashCode = (hashCode * 397) ^ OrderDayOfWeek.GetHashCode();
         return(hashCode);
     }
 }