コード例 #1
0
 public void GetHashCodeReturnsUniqueValue()
 {
     using (NativeArray2D <int> a1 = CreateArray(2, 3))
     {
         using (NativeArray2D <int> a2 = CreateArray(2, 3))
         {
             int hash1 = a1.GetHashCode();
             int hash2 = a2.GetHashCode();
             Assert.That(hash1, Is.Not.EqualTo(hash2));
         }
     }
 }
コード例 #2
0
 public override int GetHashCode()
 {
     return(Value.GetHashCode());
 }