Пример #1
0
 public override int GetHashCode()
 {
     return(TopLeft.GetHashCode()
            ^ TopRight.GetHashCode()
            ^ BottomLeft.GetHashCode()
            ^ BottomRight.GetHashCode());
 }
Пример #2
0
 /// <inheritdoc />
 public override int GetHashCode()
 => GetHashCodeHelper.CalculateHashCode(TopLeft.GetHashCode(),
                                        TopMiddle.GetHashCode(),
                                        TopRight.GetHashCode(),
                                        MiddleLeft.GetHashCode(),
                                        MiddleRight.GetHashCode(),
                                        BottomLeft.GetHashCode(),
                                        BottomMiddle.GetHashCode(),
                                        BottomRight.GetHashCode());
Пример #3
0
 public override int GetHashCode()
 {
     unchecked {
         int hashCode = TopLeft.GetHashCode();
         hashCode = (hashCode * 397) ^ TopRight.GetHashCode();
         hashCode = (hashCode * 397) ^ BottomLeft.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
     {
         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);
     }
 }
Пример #6
0
 public override int GetHashCode() => (BottomLeft.GetHashCode() * 397) ^ TopRight.GetHashCode();
Пример #7
0
 /// <inheritdoc />
 public override int GetHashCode()
 => TopLeft.GetHashCode()
 ^ TopRight.GetHashCode()
 ^ BottomLeft.GetHashCode()
 ^ BottomRight.GetHashCode();