Coord.ToString C# (CSharp) Method

ToString() public method

public ToString ( ) : string
return string
    public override string ToString()
    {
        string str = "(" + x + ", " + y + ")";

        return str;
    }

Usage Example

 public override string ToString()
 {
     if (next == 0)
     {
         return("{ Empty Node }");
     }
     else if (next == -1)
     {
         return("{ Node " + key.ToString() + " }");
     }
     return("{ Node " + key.ToString() + ", Next: " + (next - 1) + " }");
 }
All Usage Examples Of Coord::ToString