コード例 #1
0
ファイル: CodeGen.Gen.cs プロジェクト: garinrkpp/ttt
 public override Int32 GetHashCode()
 {
     unchecked {
         var hash = 41;
         hash = hash * 31 + _Character.GetHashCode();
         hash = hash * 31 + _Damage.GetHashCode();
         return(hash);
     }
 }
コード例 #2
0
ファイル: TSMatrix.cs プロジェクト: sjb8100/synced_frame_demo
 public override int GetHashCode()
 {
     return(M11.GetHashCode() ^
            M12.GetHashCode() ^
            M13.GetHashCode() ^
            M21.GetHashCode() ^
            M22.GetHashCode() ^
            M23.GetHashCode() ^
            M31.GetHashCode() ^
            M32.GetHashCode() ^
            M33.GetHashCode());
 }
コード例 #3
0
 /// <summary>
 /// Gets the hashcode of the vector.
 /// </summary>
 /// <returns>Returns the hashcode of the vector.</returns>
 #region public override int GetHashCode()
 public override int GetHashCode()
 {
     return(x.GetHashCode() ^ y.GetHashCode() ^ z.GetHashCode());
 }