コード例 #1
0
        public override int GetHashCode()
        {
            int result = 17;

            result = 31 * result + nodeState.GetHashCode();
            result = 31 * result + coordinates.GetHashCode();
            result = 31 * result + GScore.GetHashCode();
            result = 31 * result + HScore.GetHashCode();
            return(result);
        }
コード例 #2
0
 public override int GetHashCode()
 {
     return(Location.GetHashCode() + GScore.GetHashCode() + HScore.GetHashCode());
 }