示例#1
0
        //--------------------------------------------------------------
        #region Overrides
        //--------------------------------------------------------------

        /// <summary>
        /// Returns the hash code for this instance.
        /// </summary>
        /// <returns>
        /// A 32-bit signed integer that is the hash code for this instance.
        /// </returns>
        public override int GetHashCode()
        {
            // ReSharper disable NonReadonlyFieldInGetHashCode
            unchecked
            {
                int hashCode = Position.GetHashCode();
                hashCode = (hashCode * 397) ^ Orientation.GetHashCode();
                return(hashCode);
            }
            // ReSharper restore NonReadonlyFieldInGetHashCode
        }
示例#2
0
 public void HashCode()
 {
     Matrix33F m = new Matrix33F(columnMajor, MatrixOrder.ColumnMajor);
       Assert.AreNotEqual(Matrix33F.Identity.GetHashCode(), m.GetHashCode());
 }
示例#3
0
        public void HashCode()
        {
            Matrix33F m = new Matrix33F(columnMajor, MatrixOrder.ColumnMajor);

            Assert.AreNotEqual(Matrix33F.Identity.GetHashCode(), m.GetHashCode());
        }