Carrotware.CMS.Core.ContentCategory.Equals C# (CSharp) Метод

Equals() публичный Метод

public Equals ( Object obj ) : bool
obj Object
Результат bool
        public override bool Equals(Object obj)
        {
            //Check for null and compare run-time types.
            if (obj == null || GetType() != obj.GetType()) return false;

            if (obj is ContentCategory) {
                ContentCategory p = (ContentCategory)obj;
                return (this.SiteID == p.SiteID && this.ContentCategoryID == p.ContentCategoryID);
            } else {
                return false;
            }
        }