public static void Main()
var points = new Point[] { new Point(1,1), new Point(2,2), new Point(3,3) };
var result = points.Zip(points.Skip(1));
foreach(var entry in result)
Console.WriteLine(entry);
public int X { get; set; }
public int Y { get; set; }
public Point(int x, int y)
public override string ToString()