public Rectangle(Rectangle rectangle) { this.upLeft = new Point(rectangle.upLeft); this.downRight = new Point(rectangle.downRight); }
static void Main(string[] args) { Rectangle rect = new Rectangle(new Point(0, 2), new Point(2, 0)); Rectangle rect2 = new Rectangle(new Point(1, 2), new Point(2, 0)); Console.WriteLine(rect!=rect2); }