public override bool Equals(Object obj)
{
//Check for null and compare run-time types.
if (obj == null || this.GetType() != obj.GetType()) return false;
if (obj is CMSFilePath) {
CMSFilePath p = (CMSFilePath)obj;
return (this.TemplateFile.ToLowerInvariant() == p.TemplateFile.ToLowerInvariant())
&& (this.SiteID == p.SiteID);
} else {
return false;
}
}