这是我的清单
public string state { get; set; }
public string city { get; set; }
public Point p1 { get; set; }
public Point p2 { get; set; }
public List<Explorer> line = new List<Explorer>();
public List<Explorer> rectangle = new List<Explorer>();
public List<Explorer> ellipse = new List<Explorer>();
这是我在列表代码中添加元素
line.Add(new Explorer
{
state = "AAAA",
city = "BBB",
p1 = start,
p2 = end
});
与州和城市的价值相关,我需要找到它们的位置点。