예제 #1
0
        public override int GetHashCode()
        {
            var hashCode = -926758218;

            hashCode = hashCode * -1521134295 + Degrees.GetHashCode();
            hashCode = hashCode * -1521134295 + Minutes.GetHashCode();
            hashCode = hashCode * -1521134295 + Seconds.GetHashCode();
            return(hashCode);
        }
예제 #2
0
 /// <summary>
 /// Gets hash code for the angle value.
 /// </summary>
 /// <returns>Hash code value.</returns>
 public override int GetHashCode()
 {
     unchecked
     {
         int hash = 17;
         hash = hash * 23 + Sign.GetHashCode();
         hash = hash * 23 + Degrees.GetHashCode();
         hash = hash * 23 + Minutes.GetHashCode();
         hash = hash * 23 + Seconds.GetHashCode();
         return(hash);
     }
 }
예제 #3
0
 /// <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()
 {
     return(Degrees.GetHashCode());
 }
예제 #4
0
 /// <summary>
 /// Returns a hash code for this <see cref="Rotation" />.
 /// </summary>
 /// <returns>An integer value that specifies the hash code for this <see cref="Rotation" />.</returns>
 public override int GetHashCode() => Degrees.GetHashCode();