Example #1
0
 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);
     }
 }
Example #2
0
 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));
 }