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