From 7d912715bc2a19cd4c3bba66af172be7d96b928b Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Sun, 5 Sep 2010 15:20:01 +1200 Subject: [PATCH] add ToString() for Pair, to make debug saner. --- OpenRA.FileFormats/Primitives/Pair.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/OpenRA.FileFormats/Primitives/Pair.cs b/OpenRA.FileFormats/Primitives/Pair.cs index 378fcd91ed..b503835ecc 100644 --- a/OpenRA.FileFormats/Primitives/Pair.cs +++ b/OpenRA.FileFormats/Primitives/Pair.cs @@ -56,6 +56,11 @@ namespace OpenRA.FileFormats public static U AsSecond(Pair p) { return p.Second; } public Pair Swap() { return Pair.New(Second, First); } + + public override string ToString() + { + return "({0},{1})".F(First, Second); + } } public static class Pair