Example #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = CategoryName?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ CertificationRequisitionId.GetHashCode();
         hashCode = (hashCode * 397) ^ ContentId.GetHashCode();
         hashCode = (hashCode * 397) ^ (Description?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ Id.GetHashCode();
         hashCode = (hashCode * 397) ^ (InternalCategoryName?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (InternalSubcategoryName?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ IsCertification.GetHashCode();
         hashCode = (hashCode * 397) ^ IsMythic.GetHashCode();
         hashCode = (hashCode * 397) ^ IsWearable.GetHashCode();
         hashCode = (hashCode * 397) ^ HideIfNotAcquired.GetHashCode();
         hashCode = (hashCode * 397) ^ (LargeImageUrl?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ LevelRequirement;
         hashCode = (hashCode * 397) ^ (Name?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Rarity?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (int)RarityType;
         hashCode = (hashCode * 397) ^ SellPrice;
         hashCode = (hashCode * 397) ^ (SubcategoryName?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ SubcategoryOrder;
         hashCode = (hashCode * 397) ^ (SupportedGameModes?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (int)UseType;
         return(hashCode);
     }
 }
Example #2
0
 public override bool Equals(object obj)
 {
     return(CategoryName.Equals(((Product)obj).CategoryName) && SubcategoryName.Equals(((Product)obj).SubcategoryName) &&
            /*ImgHref.Equals(((Product)obj).ImgHref) &&*/ Title.Equals(((Product)obj).Title) &&
            (NonDiscountPrice.Equals(((Product)obj).NonDiscountPrice)? true: (OldPrice.Equals(((Product)obj).OldPrice) &&
                                                                              NewPrice.Equals(((Product)obj).NewPrice) && DiscountOff.Equals((((Product)obj).DiscountOff)))));
 }
Example #3
0
        public bool Equals(SubCategoryItem sub)
        {
            if (ReferenceEquals(null, sub))
            {
                return(false);
            }
            if (ReferenceEquals(this, sub))
            {
                return(true);
            }

            return(SubcategoryName.Equals(sub.SubcategoryName));
        }
Example #4
0
        public override bool Equals(object obj)
        {
            if (GpoIdentifier != null && SubcategoryName != null)
            {
                if (!(obj is AuditSetting auditSetting))
                {
                    return(false);
                }

                return(SubcategoryName.Equals(auditSetting.SubcategoryName) && CurrentSettingValue.Equals(auditSetting.CurrentSettingValue));
            }

            return(base.Equals(obj));
        }
Example #5
0
 public override int GetHashCode()
 {
     return(SubcategoryName.GetHashCode());
 }