add ToString() for Pair, to make debug saner.

This commit is contained in:
Chris Forbes
2010-09-05 15:20:01 +12:00
parent d6449c2902
commit 7d912715bc

View File

@@ -56,6 +56,11 @@ namespace OpenRA.FileFormats
public static U AsSecond(Pair<T, U> p) { return p.Second; }
public Pair<U, T> Swap() { return Pair.New(Second, First); }
public override string ToString()
{
return "({0},{1})".F(First, Second);
}
}
public static class Pair