Using Linq, it can be a 1-liner
//assuming a list of strings like this var strings = new List<String>{ "13,2", "2,4"}; //get a list of points var points = (from s in strings select new Point(s.split(",")[0], s.split(",")[1])) .ToList(); // or Point.Parse as PK pointed out var points = (from s in strings select Point.Parse(s)).ToList();
I use mac to write this, so I can't check the syntax, but it should be close.
source share