public static Pos ParsePos(string str) { int spaceIdx = str.IndexOf(' '); var newPos = new Pos { X = Int32.Parse(str.Substring(0, spaceIdx)), Y = Int32.Parse(str.Substring(spaceIdx + 1)) }; return newPos; }
public TunnelCell(string label) : base(label) { Pos = Pos.ParsePos(label); }