Exemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = North.GetHashCode();
         hashCode = (hashCode * 397) ^ South.GetHashCode();
         hashCode = (hashCode * 367) ^ East.GetHashCode();
         hashCode = (hashCode * 347) ^ West.GetHashCode();
         return(hashCode);
     }
 }
Exemplo n.º 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = CurrentSite.GetHashCode();
         result = (result * 397) ^ North.GetHashCode();
         result = (result * 397) ^ South.GetHashCode();
         result = (result * 397) ^ East.GetHashCode();
         result = (result * 397) ^ West.GetHashCode();
         return(result);
     }
 }