示例#1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = Center.GetHashCode();
         hashCode = (hashCode * 397) ^ RadiusX.GetHashCode();
         hashCode = (hashCode * 397) ^ RadiusY.GetHashCode();
         return(hashCode);
     }
 }
示例#2
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = TopLeft.GetHashCode();
         hashCode = (hashCode * 397) ^ Width.GetHashCode();
         hashCode = (hashCode * 397) ^ Height.GetHashCode();
         return(hashCode);
     }
 }