Пример #1
0
 public override int GetHashCode()
 {
     return(TopLeft.GetHashCode()
            ^ TopRight.GetHashCode()
            ^ BottomLeft.GetHashCode()
            ^ BottomRight.GetHashCode());
 }
Пример #2
0
        public override int GetHashCode()
        {
            int result = 17;

            result = result * 37 + TopLeft.GetHashCode();
            result = result * 37 + BottomRight.GetHashCode();
            return(result);
        }
Пример #3
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = List.GetHashCode();
         hashCode = (hashCode * 397) ^ UpperLeft.GetHashCode();
         hashCode = (hashCode * 397) ^ BottomRight.GetHashCode();
         return(hashCode);
     }
 }
Пример #4
0
 /// <summary>
 /// Returns a hash code for the specified object
 /// </summary>
 /// <returns>A hash code for the specified object</returns>
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (BottomLeft != null ? BottomLeft.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (TopLeft != null ? TopLeft.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (TopRight != null ? TopRight.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (BottomRight != null ? BottomRight.GetHashCode() : 0);
         return(hashCode);
     }
 }
Пример #5
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = TopLeft.GetHashCode();
         hashCode = (hashCode * 397) ^ TopRight.GetHashCode();
         hashCode = (hashCode * 397) ^ BottomRight.GetHashCode();
         hashCode = (hashCode * 397) ^ BottomLeft.GetHashCode();
         return(hashCode);
     }
 }
Пример #6
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = _rotation.GetHashCode();
         hashCode = (hashCode * 397) ^ Center.GetHashCode();
         hashCode = (hashCode * 397) ^ Size.GetHashCode();
         hashCode = (hashCode * 397) ^ TopRight.GetHashCode();
         hashCode = (hashCode * 397) ^ TopLeft.GetHashCode();
         hashCode = (hashCode * 397) ^ BottomRight.GetHashCode();
         hashCode = (hashCode * 397) ^ BottomLeft.GetHashCode();
         return(hashCode);
     }
 }
Пример #7
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);
        }
Пример #8
0
 public override int GetHashCode()
 {
     return(TopLeft.GetHashCode() * 17 ^ BottomRight.GetHashCode() * 23);
 }
        public override int GetHashCode()
        {
            int arrayHash = ((IStructuralEquatable)bits).GetHashCode(EqualityComparer <int> .Default);

            return(arrayHash ^ TopLeft.GetHashCode() ^ BottomRight.GetHashCode());
        }
Пример #10
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(((TopLeft != null ? TopLeft.GetHashCode() : 0) * 397) ^ (BottomRight != null ? BottomRight.GetHashCode() : 0));
     }
 }
Пример #11
0
 /// <inheritdoc />
 public override int GetHashCode()
 => TopLeft.GetHashCode()
 ^ TopRight.GetHashCode()
 ^ BottomLeft.GetHashCode()
 ^ BottomRight.GetHashCode();