Transform Two Lists into One Different List

Posted by Ngu Soon Hui on Stack Overflow See other posts from Stack Overflow or by Ngu Soon Hui
Published on 2010-04-13T15:29:05Z Indexed on 2010/04/13 15:33 UTC
Read the original article Hit count: 262

Filed under:
|

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.

© Stack Overflow or respective owner

Related posts about c#

Related posts about LINQ