Beispiel #1
0
 public override int GetHashCode()
 {
     unchecked {
         var hashCode = top.GetHashCode();
         hashCode = (hashCode * 397) ^ right.GetHashCode();
         hashCode = (hashCode * 397) ^ bottom.GetHashCode();
         hashCode = (hashCode * 397) ^ left.GetHashCode();
         hashCode = (hashCode * 397) ^ horizontalInside.GetHashCode();
         hashCode = (hashCode * 397) ^ verticalInside.GetHashCode();
         return(hashCode);
     }
 }
 public override int GetHashCode()
 {
     return((shape.GetHashCode() * 397) ^ side.GetHashCode());
 }