Exemplo n.º 1
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)))));
 }
Exemplo n.º 2
0
        public bool Equals(SubCategoryItem sub)
        {
            if (ReferenceEquals(null, sub))
            {
                return(false);
            }
            if (ReferenceEquals(this, sub))
            {
                return(true);
            }

            return(SubcategoryName.Equals(sub.SubcategoryName));
        }
Exemplo n.º 3
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));
        }