add ToString() for Pair, to make debug saner.
This commit is contained in:
@@ -56,6 +56,11 @@ namespace OpenRA.FileFormats
|
|||||||
public static U AsSecond(Pair<T, U> p) { return p.Second; }
|
public static U AsSecond(Pair<T, U> p) { return p.Second; }
|
||||||
|
|
||||||
public Pair<U, T> Swap() { return Pair.New(Second, First); }
|
public Pair<U, T> Swap() { return Pair.New(Second, First); }
|
||||||
|
|
||||||
|
public override string ToString()
|
||||||
|
{
|
||||||
|
return "({0},{1})".F(First, Second);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class Pair
|
public static class Pair
|
||||||
|
|||||||
Reference in New Issue
Block a user