System.Windows.Point.GetHashCode C# (CSharp) 메소드

GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 int
        public override int GetHashCode()
        {
            return (this.X.GetHashCode() ^ this.Y.GetHashCode());
        }

Usage Example

예제 #1
0
파일: PointTest.cs 프로젝트: nobled/mono
        public void getHashCodeTest()
        {
			Point p1 = new Point(-5, -4);
			Point p2 = new Point(5, 4);
			Point p3 = new Point(5, 4);

			Assert.AreEqual(p2.GetHashCode(), p3.GetHashCode());
			Assert.AreEqual(p1.GetHashCode(),p2.GetHashCode());
        }
All Usage Examples Of System.Windows.Point::GetHashCode