Point == Point : Point « System.Drawing « C# / C Sharp by API






Point == Point

  

using System;
using System.Drawing;

class MainClass
{
  public static int Main(string[] args)
  {
    
    Point pt = new Point(100, 72);
    Console.WriteLine(pt);

    Point pt2 = pt;        
    if(pt == pt2)
      Console.WriteLine("Points are the same");
    else
      Console.WriteLine("Different points");
  
    return 0;
  }
}

   
    
  








Related examples in the same category

1.new Point(int x, int y)
2.Point.X
3.Point.Y