public override bool Equals(object o) { if (o is ProfileConfiguration) { ProfileConfiguration c = o as ProfileConfiguration; return TargetPath == c.TargetPath && Mode == c.Mode && StartEnabled == c.StartEnabled; } else return false; }