System.Windows.Point.Equals C# (CSharp) Method

Equals() public method

public Equals ( object o ) : bool
o object
return bool
        public override bool Equals(object o)
        {
            if ((o == null) || !(o is Point))
            {
                return false;
            }
            Point point = (Point)o;
            return Equals(this, point);
        }

Same methods

Point::Equals ( Point value ) : bool
Point::Equals ( Point point1, Point point2 ) : bool

Usage Example

示例#1
0
文件: PointTest.cs 项目: nobled/mono
		public void Equals ()
		{
			Point p = new Point (4, 5);
			Assert.IsTrue (p.Equals (new Point (4, 5)));
			Assert.IsFalse (p.Equals (new Point (5, 4)));
			Assert.IsFalse (p.Equals (new object()));
		}
All Usage Examples Of System.Windows.Point::Equals