Overloaded Point operators : Point : Drawing 2D C# Examples


C# Examples » Drawing 2D » Point »

 

Overloaded Point operators









    
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;
    }
}
    
   
  
   



Output

{X=100,Y=72}
Points are the same


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Drawing 2D
» Point