ToString() public method

public ToString ( ) : string
return string
コード例 #1
0
 public override string ToString()
 {
     if (IsAssigned())
     {
         return(_containee.ToString());
     }
     return(Name);
 }
コード例 #2
0
        public override string ToString()
        {
            string str = _name + "(";

            for (int i = 0; i < _arity; i++)
            {
                AbstractTerm term = (AbstractTerm)this[i];
                str += term.ToString();
                if (i == _arity - 1)
                {
                    str += ")";
                }
                else
                {
                    str += ",";
                }
            }
            return(str);
        }