public override bool Equals (object obj) { FilePath other = obj as FilePath; if (other == null) return false; return GetCanonicalPath () == other.GetCanonicalPath (); }