【发布时间】:2014-08-23 18:46:41
【问题描述】:
它们是将string 转换为Point[] 的快速方法(一行或两行)?
我的字符串:"10,10;10,20;20,20;20,10;10,10";
想要的结果:
Point[] point = new Point[5]
{
new Point(10, 10),
new Point(10, 20),
new Point(20, 20),
new Point(20, 10),
new Point(10, 10)
};
【问题讨论】:
标签: c# asp.net arrays split converter