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() { 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); }
/// <summary> /// [SECURITY CRITICAL] Returns the hash code of the structure. /// </summary> /// <returns>A hash code for this Windows.UI.Xaml.CornerRadius.</returns> public override int GetHashCode() { return(TopLeft.GetHashCode() ^ TopRight.GetHashCode() ^ BottomRight.GetHashCode() ^ BottomLeft.GetHashCode()); }
public override int GetHashCode() => (BottomLeft.GetHashCode() * 397) ^ TopRight.GetHashCode();