Point p = new Point(2, 4);
p.Offset(3, 2);
Point p1 = new Point(1, 5); Point p2 = new Point(1, 5); if(p1 == p2) { Console.WriteLine("The points are equal."); }This code creates two Point objects with the same coordinates and checks if they are equal. Package library: System.Drawing.