예제 #1
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>
 /// <filterpriority>2</filterpriority>
 public override int GetHashCode()
 {
     unchecked
     {
         return((UpperLeft.GetHashCode() * 397) ^ LowerRight.GetHashCode());
     }
 }
예제 #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = List.GetHashCode();
         hashCode = (hashCode * 397) ^ UpperLeft.GetHashCode();
         hashCode = (hashCode * 397) ^ BottomRight.GetHashCode();
         return(hashCode);
     }
 }
예제 #3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ObstacleId.Length != 0)
            {
                hash ^= ObstacleId.GetHashCode();
            }
            if (bottomLeft_ != null)
            {
                hash ^= BottomLeft.GetHashCode();
            }
            if (upperLeft_ != null)
            {
                hash ^= UpperLeft.GetHashCode();
            }
            if (upperRight_ != null)
            {
                hash ^= UpperRight.GetHashCode();
            }
            if (bottomRight_ != null)
            {
                hash ^= BottomRight.GetHashCode();
            }
            if (TimeLower != 0D)
            {
                hash ^= TimeLower.GetHashCode();
            }
            if (TimeUpper != 0D)
            {
                hash ^= TimeUpper.GetHashCode();
            }
            if (PathLower != 0D)
            {
                hash ^= PathLower.GetHashCode();
            }
            if (PathUpper != 0D)
            {
                hash ^= PathUpper.GetHashCode();
            }
            return(hash);
        }
예제 #4
0
 public override int GetHashCode() =>
 UpperLeft.GetHashCode() + LowerRight.GetHashCode();