public override int GetHashCode() { unchecked { var hash = (board.GetHashCode() * 397) ^ estimation; hash = (hash * 17) ^ cost; hash = (hash * 17) ^ moveToThis.GetHashCode(); return(hash); } }
public override int GetHashCode() { unchecked { var hashCode = size; hashCode = (hashCode * 397) ^ GetCellHash(); hashCode = (hashCode * 397) ^ emptyCellPos.GetHashCode(); hashCode = (hashCode * 397) ^ correctlyOrderedCells; return(hashCode); } }