public override string ToString()
{
return string.Format("{0},{1}", this.x, this.y);
}
public static Pair FromString(string str)
{
string[] temp = str.Split(',');
//validation better be here.....
return new Pair(Int32.Parse(temp[0]), Int32.Parse(temp[1]));
}