CCT.NUI.Core.Vector.GetHashCode C# (CSharp) Method

GetHashCode() public method

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

Usage Example

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