public override bool Equals(object obj) { var user = obj as AgentCacheItem; if (user == null) { return(false); } return(Id.Equals(user.Id) && SiteId.Equals(user.SiteId)); }
public override bool Equals(object obj) { FilterCacheItem objFilter = obj as FilterCacheItem; if (objFilter == null) { return(false); } return(Id.Equals(objFilter.Id) && SiteId.Equals(objFilter.SiteId)); }