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 ContentEditor) {
ContentEditor p = (ContentEditor)obj;
return (this.SiteID == p.SiteID
&& this.UserName.ToLowerInvariant() == p.UserName.ToLowerInvariant());
} else {
return false;
}
}