Exemplo n.º 1
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);
     }
 }
Exemplo n.º 2
0
        //-----------------------------------------------------------------------------

        public override int GetHashCode()
        {
            unchecked
            {
                int hash = 17;
                hash = hash * 23 + Row.GetHashCode();
                hash = hash * 23 + Col.GetHashCode();
                hash = hash * 23 + East.GetHashCode();
                hash = hash * 23 + North.GetHashCode();
                hash = hash * 23 + StartPoint.GetHashCode();
                hash = hash * 23 + NoOfPoints.GetHashCode();
                return(hash);
            }
        }