I’m generating List<int> x and List<int> y from List<Point> p using this code:
List<int> x = (from a in p select a.X).ToList();
List<int> y = (from a in p select a.Y).ToList();
So is there any single LINQ query for getting x and y from p?
No but you can do something like this:
But i think that the best solution remains this, using two queries: