Beispiel #1
0
        public override bool Equals(object obj)
        {
            if (obj == null || obj.GetType() != typeof(OfferCategory))
            {
                return(false);
            }

            OfferCategory convertedCategory = (OfferCategory)obj;

            return(convertedCategory.EOfferWebsite.Equals(EOfferWebsite) &&
                   convertedCategory.CategoryUrl.Equals(CategoryUrl));
        }
Beispiel #2
0
 protected bool Equals(OfferCategory other)
 {
     return(CategoryUrl == other.CategoryUrl && CategoryName == other.CategoryName &&
            EOfferWebsite == other.EOfferWebsite && CategoryId == other.CategoryId);
 }