I have two lists of double
List<double> X
List<double> Y
And I have a destination object:
public class PointD
{
public double X
{get;set;}
public double Y
{get;set;}
}
How to transform them into a single list?
public static List<PointD> Transform(List<double> X, List<double> Y)
{
}
All the errors checking must be there.
The answer must be in LINQ, sorry for not specifying this earlier!