public override int GetHashCode() { return(TopLeft.GetHashCode() ^ TopRight.GetHashCode() ^ BottomLeft.GetHashCode() ^ BottomRight.GetHashCode()); }
/// <inheritdoc /> public override int GetHashCode() => GetHashCodeHelper.CalculateHashCode(TopLeft.GetHashCode(), TopMiddle.GetHashCode(), TopRight.GetHashCode(), MiddleLeft.GetHashCode(), MiddleRight.GetHashCode(), BottomLeft.GetHashCode(), BottomMiddle.GetHashCode(), BottomRight.GetHashCode());
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); } }
/// <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); } }
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); } }
public override int GetHashCode() => (BottomLeft.GetHashCode() * 397) ^ TopRight.GetHashCode();
/// <inheritdoc /> public override int GetHashCode() => TopLeft.GetHashCode() ^ TopRight.GetHashCode() ^ BottomLeft.GetHashCode() ^ BottomRight.GetHashCode();