コード例 #1
0
 public bool Equals(EdgeAction <T> other)
 {
     if (other == null)
     {
         return(false);
     }
     else
     {
         bool states_equal = FromState.Equals(other.FromState) && ToState.Equals(other.ToState);
         bool costs_equal  = Cost.Equals(other.Cost);
         return(states_equal && costs_equal);
     }
 }
コード例 #2
0
        public override bool Equals(object other)
        {
            EdgeAction <T> EdgeVertex = other as EdgeAction <T>;

            return(this.Equals(EdgeVertex));
        }