Esempio n. 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = CategoryId.GetHashCode();
         hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (AffiliateProgram != null ? AffiliateProgram.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (FriendlyName != null ? FriendlyName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (CategoryUrl != null ? CategoryUrl.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (CouponsCount.GetHashCode());
         return(hashCode);
     }
 }
Esempio n. 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = StoreId.GetHashCode();
         hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (AffiliateProgram != null ? AffiliateProgram.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Description != null ? Description.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (FriendlyName != null ? FriendlyName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ImageUrl != null ? ImageUrl.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (StoreUrl != null ? StoreUrl.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ CouponsCount.GetHashCode();
         return(hashCode);
     }
 }
Esempio n. 3
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = CouponId.GetHashCode();
         hashCode = (hashCode * 397) ^ (Description != null ? Description.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (AffiliateProgram != null ? AffiliateProgram.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (FriendlyDescription != null ? FriendlyDescription.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Remark != null ? Remark.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Code != null ? Code.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Discount.GetHashCode();
         hashCode = (hashCode * 397) ^ (Store != null ? Store.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Category != null ? Category.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Validity.GetHashCode();
         hashCode = (hashCode * 397) ^ (CouponLink != null ? CouponLink.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ New.GetHashCode();
         hashCode = (hashCode * 397) ^ IsPercentage.GetHashCode();
         hashCode = (hashCode * 397) ^ Shipping.GetHashCode();
         return(hashCode);
     }
 }