CCT.NUI.Core.Vector.GetHashCode C# (CSharp) 메소드

GetHashCode() 공개 메소드

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

Usage Example

예제 #1
0
 public void Test_GetHashcode()
 {
     var vector = new Vector(2, 5, 9);
     Assert.IsTrue(vector.GetHashCode() != 0);
 }