コード例 #1
0
ファイル: Half2.cs プロジェクト: nkast/FusionFramework
 /// <summary>
 /// Returns the hash code for this instance.
 /// </summary>
 /// <returns>A 32-bit signed integer hash code.</returns>
 public override int GetHashCode()
 {
     unchecked
     {
         return (X.GetHashCode() * 397) ^ Y.GetHashCode();
     }
 }
コード例 #2
0
 /// <summary>
 /// Returns the hash code for this instance.
 /// </summary>
 /// <returns>A 32-bit signed integer hash code.</returns>
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = X.GetHashCode();
         hashCode = (hashCode * 397) ^ Y.GetHashCode();
         hashCode = (hashCode * 397) ^ Z.GetHashCode();
         return(hashCode);
     }
 }