public override bool Equals(object obj) { if (!(obj is Rectangle)) return false; return (this == (Rectangle)obj); }