public override int GetHashCode() { unchecked { var hashCode = Rect.GetHashCode(); hashCode = (hashCode * 397) ^ RadiiTopLeft.GetHashCode(); hashCode = (hashCode * 397) ^ RadiiTopRight.GetHashCode(); hashCode = (hashCode * 397) ^ RadiiBottomLeft.GetHashCode(); hashCode = (hashCode * 397) ^ RadiiBottomRight.GetHashCode(); return(hashCode); } }
public bool Equals(RoundedRect other) { return(Rect.Equals(other.Rect) && RadiiTopLeft.Equals(other.RadiiTopLeft) && RadiiTopRight.Equals(other.RadiiTopRight) && RadiiBottomLeft.Equals(other.RadiiBottomLeft) && RadiiBottomRight.Equals(other.RadiiBottomRight)); }