string[] coords = str.Split(','); Point point = new Point(int.Parse(coords[0]), int.Parse(coords[1]));