예제 #1
0
 public Rectangle(Rectangle rectangle)
 {
     this.upLeft = new Point(rectangle.upLeft);
     this.downRight = new Point(rectangle.downRight);
 }
예제 #2
0
 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);
 }